]> git.openpandora.org Git - pandora-libraries.git/commitdiff
Switched to su -c instead of sudo.
authorvimacs <vimacs@pndtest>
Wed, 17 Feb 2010 11:34:19 +0000 (12:34 +0100)
committervimacs <vimacs@pndtest>
Wed, 17 Feb 2010 11:34:19 +0000 (12:34 +0100)
modified:   testdata/scripts/op_menu.sh

testdata/scripts/op_menu.sh

index 5e05190dda9c3f40163593eaa7d697ebde5764f1..8dcb7a59be5fed903cadc2fa76a9c492804bbbe6 100755 (executable)
@@ -19,7 +19,7 @@ if [ $xpid ]; then
   else
   echo "starting appfinder"
     xfceuser=$(ps ua -C xfce4-session | grep /usr/bin/xfce4-session  | tail -n1 | awk '{print $1}')
-    sudo -u $xfceuser DISPLAY=:0.0 xfce4-appfinder
+    su -c 'DISPLAY=:0.0 xfce4-appfinder' - $xfceuser
   fi
 else
   echo "no x, killing all pnd aps so x gets restarted"