From 3e000a9087fa3611e1661dc3c517046b259556e1 Mon Sep 17 00:00:00 2001 From: Keith Bowes Date: Wed, 21 Aug 2024 12:32:03 -0400 Subject: [PATCH] Fixed handling of NotShowIn key --- data/xdg-autostart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/xdg-autostart b/data/xdg-autostart index 5c11397..3ea0d55 100644 --- a/data/xdg-autostart +++ b/data/xdg-autostart @@ -66,6 +66,8 @@ do then show_in=0 break 2 + else + show_in=1 fi done done @@ -88,7 +90,7 @@ do then # Don't run the Exec key if a non-empty TryExec command can't be found TRY_EXEC=$(cat "$f" | grep '^TryExec\s*=\s*\S' | sed -e 's/^TryExec\s*=\s*//g'); - if test -n "$TRY_EXEC" && ! which $TRY_EXEC; + if test -n "$TRY_EXEC" && ! command -v $TRY_EXEC >/dev/null 2>&1; then continue fi