diff --git a/lbrynet/__init__.py b/lbrynet/__init__.py index c1857d897..a4aacb556 100644 --- a/lbrynet/__init__.py +++ b/lbrynet/__init__.py @@ -5,3 +5,4 @@ logging.getLogger(__name__).addHandler(logging.NullHandler()) log.setLevel(logging.ERROR) __version__ = "0.3.2" +version = tuple(__version__.split('.')) diff --git a/packaging/ubuntu/postinst_append b/packaging/ubuntu/postinst_append index 2b3200504..e082aad14 100755 --- a/packaging/ubuntu/postinst_append +++ b/packaging/ubuntu/postinst_append @@ -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="LBRY Installed\n\nNo problem. You can run LBRY later by going to