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>
master
Stacy Harper 3 years ago committed by Maarten van Gompel
parent 6426a94e46
commit 7ac78f8272
  1. 2
      scripts/core/sxmo_dmenu_with_kb.sh

@ -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

Loading…
Cancel
Save