diff --git a/scripts/core/sxmo_gesturehandler.sh b/scripts/core/sxmo_gesturehandler.sh index 673b13a..dd18454 100755 --- a/scripts/core/sxmo_gesturehandler.sh +++ b/scripts/core/sxmo_gesturehandler.sh @@ -76,10 +76,10 @@ if [ "$HANDLE" -ne 0 ]; then pkill -9 "$KEYBOARD" ;; "showmenu") - pidof dmenu || sxmo_appmenu.sh & + pidof dmenu || setsid -f sxmo_appmenu.sh & ;; "showsysmenu") - pidof dmenu || sxmo_appmenu.sh sys & + pidof dmenu || setsid -f sxmo_appmenu.sh sys & ;; "hidemenu") pkill -9 dmenu diff --git a/scripts/modem/sxmo_modemmonitortoggle.sh b/scripts/modem/sxmo_modemmonitortoggle.sh index a06e0b0..732b704 100755 --- a/scripts/modem/sxmo_modemmonitortoggle.sh +++ b/scripts/modem/sxmo_modemmonitortoggle.sh @@ -2,7 +2,7 @@ if pgrep -f sxmo_modemmonitor.sh; then pgrep -f sxmo_modemmonitor.sh | grep -Ev "^${$}$" | xargs -IP kill -TERM P else - sxmo_modemmonitor.sh & + setsid -f sxmo_modemmonitor.sh & fi NOTIFDIR="$XDG_CONFIG_HOME"/sxmo/notifications