aboutsummaryrefslogtreecommitdiffstats
path: root/sway-launcher-desktop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sway-launcher-desktop.sh')
-rwxr-xr-xsway-launcher-desktop.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh
index 563d68b..2645b33 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -43,15 +43,16 @@ function entries() {
return filename
}
BEGINFILE{
+ application=0;
+ block="";
+ a=0
+
id=desktopFileID(FILENAME)
if(id in fileIds){
- exit;
+ nextfile;
}else{
fileIds[id]=0
}
- application=0;
- block="";
- a=0
}
/^\[Desktop Entry\]/{block="entry"}
/^Type=Application/{application=1}