let user know how to run lbry after install

This commit is contained in:
Alex Grintsvayg 2016-05-23 00:19:55 -04:00
parent 7a97a28e00
commit b6220e985a
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,22 @@
zenity --question --text="<span size=\"xx-large\">LBRY Installed</span>\n\nRun LBRY now?" --title="LBRY Installed" --ok-label=" Yes" \
--cancel-label=" No" --icon-name="system-software-install"
case $? in
0) RUN=1 # yes
;;
1) RUN=0 # no
;;
*) RUN=0 # timeout or escape or whatever
;;
esac
if [ $RUN = 1 ]; then
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
lbry://lbry
in your browser." --title="LBRY Installed" --icon-name="system-software-install"
fi

View file

@ -154,6 +154,8 @@ function addfile() {
addfile "$PACKAGING_DIR/lbry" usr/share/python/lbrynet/bin/lbry
addfile "$PACKAGING_DIR/lbry.desktop" usr/share/applications/lbry.desktop
cat "$PACKAGING_DIR/postinst_append" >> control/postinst
# repackage .deb
$SUDO chown -R root:root control data
tar -czf control.tar.gz -C control .