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 <m@milesalan.com>
master
Daniel Edgecumbe 4 years ago committed by Miles Alan
parent 4079d4d7e1
commit e648f73291
  1. 2
      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="$*"

Loading…
Cancel
Save