diff options
| author | Moritz Meißelbach <m.meisselbach@inpsyde.com> | 2019-10-16 16:53:17 +0200 |
|---|---|---|
| committer | Moritz Meißelbach <m.meisselbach@inpsyde.com> | 2019-10-16 16:53:17 +0200 |
| commit | 763f8ce7d73890af575824ef3f9dcdb2c502d387 (patch) | |
| tree | 4f37d72f510f9bd43e73642a97794ae90306cdde | |
| parent | 2ee714be0aa67d247224f23d008262823b5b0948 (diff) | |
| download | sway-launcher-desktop-763f8ce7d73890af575824ef3f9dcdb2c502d387.tar.gz sway-launcher-desktop-763f8ce7d73890af575824ef3f9dcdb2c502d387.zip | |
Applications with actions were missing their main entry
| -rwxr-xr-x | sway-launcher-desktop.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh index a33a812..5f1f6b8 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -62,14 +62,13 @@ trap 'rm "$FZFPIPE" "$PIDFILE"' EXIT INT } } ENDFILE{ - if (application) - if (a>0) - for (i=1; i<=a; i++) - print FILENAME "\034desktop\034\033[33m" pre name "\033[0m (" actions[i, "name"] ")\034" actions[i, "key"] - else - print FILENAME "\034desktop\034\033[33m" pre name "\033[0m"; - - }' \ + if (application){ + print FILENAME "\034desktop\034\033[33m" pre name "\033[0m"; + if (a>0) + for (i=1; i<=a; i++) + print FILENAME "\034desktop\034\033[33m" pre name "\033[0m (" actions[i, "name"] ")\034" actions[i, "key"] + } + }' \ "$dir/"*.desktop </dev/null >>"$FZFPIPE" # the empty stdin is needed in case no *.desktop files done |
