From e648f732912023fce5453581b2b96943faa1f3d6 Mon Sep 17 00:00:00 2001 From: Daniel Edgecumbe Date: Tue, 30 Jun 2020 15:29:56 +0100 Subject: [PATCH] smxo_appmenu.sh: Use 'which' to kill pre-existing instances We may have 'sxmo_appmenu.sh' in the full commandline of other tools which we don't want to kill, for example lisgd arguments. Signed-off-by: Miles Alan --- scripts/core/sxmo_appmenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh index 0b42898..7adb6ee 100755 --- a/scripts/core/sxmo_appmenu.sh +++ b/scripts/core/sxmo_appmenu.sh @@ -266,7 +266,7 @@ mainloop() { ) & wait } -pgrep -f sxmo_appmenu.sh | grep -Ev "^${$}$" | xargs kill -TERM +pgrep -f "$(which sxmo_appmenu.sh)" | grep -Ev "^${$}$" | xargs kill -TERM DMENUIDX=0 PICKED="" ARGS="$*"