From 07553c133b48a7f47b21ef6edbe52d8be578ea60 Mon Sep 17 00:00:00 2001 From: vimacs Date: Wed, 23 Dec 2009 00:52:07 +0100 Subject: [PATCH] Fixed pnd_button to work as root modified: pnd_button.sh --- testdata/scripts/pnd_button.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testdata/scripts/pnd_button.sh b/testdata/scripts/pnd_button.sh index fd8d978..b8f957e 100755 --- a/testdata/scripts/pnd_button.sh +++ b/testdata/scripts/pnd_button.sh @@ -18,7 +18,8 @@ if [ $xpid ]; then done else echo "starting appfinder" - xfce4-appfinder + xfceuser=$(ps u -C xfce4-session | tail -n1 | awk '{print $1}') + sudo -u $xfceuser xfce4-appfinder fi else echo "no x, killing all pnd aps so x gets restarted" -- 2.39.5