From 763f8ce7d73890af575824ef3f9dcdb2c502d387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Wed, 16 Oct 2019 16:53:17 +0200 Subject: Applications with actions were missing their main entry --- sway-launcher-desktop.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'sway-launcher-desktop.sh') 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 >"$FZFPIPE" # the empty stdin is needed in case no *.desktop files done -- cgit v1.2.3