From: vimacs Date: Tue, 22 Dec 2009 23:52:07 +0000 (+0100) Subject: Fixed pnd_button to work as root X-Git-Tag: Release-2010-05/1~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07553c133b48a7f47b21ef6edbe52d8be578ea60;p=pandora-libraries.git Fixed pnd_button to work as root modified: pnd_button.sh --- 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"