aboutsummaryrefslogtreecommitdiffstats
path: root/sway-launcher-desktop.sh
diff options
context:
space:
mode:
authorMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-10-16 16:53:17 +0200
committerMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-10-16 16:53:17 +0200
commit763f8ce7d73890af575824ef3f9dcdb2c502d387 (patch)
tree4f37d72f510f9bd43e73642a97794ae90306cdde /sway-launcher-desktop.sh
parent2ee714be0aa67d247224f23d008262823b5b0948 (diff)
downloadsway-launcher-desktop-763f8ce7d73890af575824ef3f9dcdb2c502d387.tar.gz
sway-launcher-desktop-763f8ce7d73890af575824ef3f9dcdb2c502d387.zip
Applications with actions were missing their main entry
Diffstat (limited to 'sway-launcher-desktop.sh')
-rwxr-xr-xsway-launcher-desktop.sh15
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