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)
__version__ = "0.3.2"
version = tuple(__version__.split('.'))

View file

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