From f81648fe35afea6ad1633c2f761380335c004f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Mon, 11 Nov 2019 15:40:02 +0100 Subject: 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 --- sway-launcher-desktop.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sway-launcher-desktop.sh') 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} -- cgit v1.2.3