diff options
| author | Moritz Meißelbach <m.meisselbach@inpsyde.com> | 2019-11-11 15:40:02 +0100 |
|---|---|---|
| committer | Moritz Meißelbach <m.meisselbach@inpsyde.com> | 2019-11-11 15:40:02 +0100 |
| commit | f81648fe35afea6ad1633c2f761380335c004f5d (patch) | |
| tree | 0b4d863ce437ce6c25392197c70dc4cb6725e9bf /sway-launcher-desktop.sh | |
| parent | ab9dfbed311865d3df835bf6c5d46096920422d5 (diff) | |
| download | sway-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
Diffstat (limited to 'sway-launcher-desktop.sh')
| -rwxr-xr-x | sway-launcher-desktop.sh | 9 |
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} |
