forked from LBRYCommunity/lbry-sdk
32 lines
688 B
Text
Executable file
32 lines
688 B
Text
Executable file
|
|
(
|
|
|
|
sleep 4
|
|
|
|
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
|
|
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
|
|
|
|
lbry://lbry
|
|
|
|
in your browser." --title="LBRY Installed" --icon-name="system-software-install"
|
|
fi
|
|
|
|
) &
|