run lbry as non-root user

This commit is contained in:
Alex Grintsvayg 2016-07-05 14:06:37 -04:00
parent df3c5b9a77
commit 36a99e6ec8

View file

@ -16,7 +16,11 @@ case $? in
esac
if [ $RUN = 1 ]; then
xdg-open "lbry://lbry"
if [ -n $SUDO_USER ]; then
sudo --user="$SUDO_USER" xdg-open "lbry://lbry"
else
xdg-open "lbry://lbry"
fi
else
zenity --info --text="<span size=\"xx-large\">LBRY Installed</span>\n\nNo problem. You can run LBRY later by going to