From 7ac78f8272c33f941cf14377d7354a9b6a1920ab Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Tue, 20 Apr 2021 11:45:17 +0200 Subject: [PATCH] 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 Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_dmenu_with_kb.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/core/sxmo_dmenu_with_kb.sh b/scripts/core/sxmo_dmenu_with_kb.sh index f855b8a..2ed0fab 100755 --- a/scripts/core/sxmo_dmenu_with_kb.sh +++ b/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