mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Fixed handling of NotShowIn key
This commit is contained in:
parent
19339ac6a0
commit
3e000a9087
1 changed files with 3 additions and 1 deletions
|
|
@ -66,6 +66,8 @@ do
|
||||||
then
|
then
|
||||||
show_in=0
|
show_in=0
|
||||||
break 2
|
break 2
|
||||||
|
else
|
||||||
|
show_in=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
@ -88,7 +90,7 @@ do
|
||||||
then
|
then
|
||||||
# Don't run the Exec key if a non-empty TryExec command can't be found
|
# 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');
|
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
|
then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue