better non-root fix, restore version var

This commit is contained in:
Alex Grintsvayg 2016-07-05 15:20:30 -04:00
parent f1c5d1cb23
commit d875325cee
2 changed files with 2 additions and 5 deletions

View file

@ -5,3 +5,4 @@ logging.getLogger(__name__).addHandler(logging.NullHandler())
log.setLevel(logging.ERROR) log.setLevel(logging.ERROR)
__version__ = "0.3.2" __version__ = "0.3.2"
version = tuple(__version__.split('.'))

View file

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