From c1aa4074146de76339937c59f97602c92cd33907 Mon Sep 17 00:00:00 2001 From: Sam Bowlby Date: Sun, 1 Nov 2020 05:57:19 -0600 Subject: [PATCH] fix crash on open menu if already open Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_gesturehandler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_gesturehandler.sh b/scripts/core/sxmo_gesturehandler.sh index 93f4583..13d50ab 100755 --- a/scripts/core/sxmo_gesturehandler.sh +++ b/scripts/core/sxmo_gesturehandler.sh @@ -76,7 +76,7 @@ if [ "$HANDLE" -ne 0 ]; then pkill -9 "$KEYBOARD" ;; "showmenu") - sxmo_appmenu.sh & + pidof dmenu || sxmo_appmenu.sh & ;; "showsysmenu") sxmo_appmenu.sh sys &