git.openpandora.org
/
pandora-libraries.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed pnd_button to work as root
[pandora-libraries.git]
/
testdata
/
scripts
/
pnd_button.sh
diff --git
a/testdata/scripts/pnd_button.sh
b/testdata/scripts/pnd_button.sh
index
fd8d978
..
b8f957e
100755
(executable)
--- 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"