sxmo_appmenu: do not excecute userscript unless permission set

Signed-off-by: Miles Alan <m@milesalan.com>
master
Anjandev Momi 4 years ago committed by Miles Alan
parent 660506b1e3
commit 624b702210
  1. 2
      scripts/core/sxmo_appmenu.sh

@ -28,7 +28,7 @@ programchoicesinit() {
echo $WMCLASS | grep -i "userscripts" && CHOICES="$(
ls -1 $XDG_CONFIG_HOME/sxmo/userscripts |
sed 's/ /\\ /' |
awk '{printf "%s\t^ 0 ^ sh $XDG_CONFIG_HOME/sxmo/userscripts/%s \n", $0, $0}'
awk '{printf "%s\t^ 0 ^ $XDG_CONFIG_HOME/sxmo/userscripts/%s \n", $0, $0}'
)" && WINNAME=Userscripts && return
# Scripts menu

Loading…
Cancel
Save