aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-11-11 15:40:02 +0100
committerMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-11-11 15:40:02 +0100
commitf81648fe35afea6ad1633c2f761380335c004f5d (patch)
tree0b4d863ce437ce6c25392197c70dc4cb6725e9bf
parentab9dfbed311865d3df835bf6c5d46096920422d5 (diff)
downloadsway-launcher-desktop-f81648fe35afea6ad1633c2f761380335c004f5d.tar.gz
sway-launcher-desktop-f81648fe35afea6ad1633c2f761380335c004f5d.zip
Use nextfile instead of exit; This was actually how I initially wrote it, but there was a problem with the ENDFILE block still being executed. I hope I got rid of that problem now as well
-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}