sxmo_dmenu_with_kb should exit the dmenu exit code

Some script could behave differently if the dmenu has been killed with a
swipe up gesture. We have to return the dmenu exit code.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Stacy Harper 2021-04-20 11:45:17 +02:00 committed by Maarten van Gompel
parent 6426a94e46
commit 7ac78f8272

View file

@ -9,5 +9,7 @@ wasopen="$(sxmo_keyboard.sh isopen && echo "yes")"
sxmo_keyboard.sh open
OUTPUT="$(cat | dmenu "$@")"
exitcode=$?
[ -z "$wasopen" ] && sxmo_keyboard.sh close
echo "$OUTPUT"
exit $exitcode