Hi Jack, This is very odd... not sure about the error message, I have run shellcheck and get no errors, and I also have tested this (in Utopic) not sure why there is an error, I will test on my ToriOS machine and see what is going on.
Here is another version that will use Zenity if it is installed instead of gxmessage or xmessage... and if none of those exist it will just simply restart. It also checks for dbus and if it doesn't exist it uses 'sudo reboot' On 05/10/2015 10:02 AM, Cinque Port Computers wrote: > Hi Israel, > > When I ran that script there was an error (see pic)...and the revised > box popped up but seemed to have no effect on changing what happens at > 'Restart Computer' time...same box as previous still shows top left > showing the 'gxmessage'. > > > > > > > > > > > > > > > > > > JackT. > > > > ialog Was:(Re: Plymouth Theme) > > On 05/10/2015 07:30 AM, Israel wrote: > > ... > > ... > > > Hi Jack, > Could you test this script? > make it executable and run it > It is just a modified version of the reboot dialog. > > Please test and see if this works better for you! > > -- > Regards > > -Israel > ToriOS Team > > > -- Mailing list: https://launchpad.net/~torios Post to : > tor...@lists.launchpad.net Unsubscribe : https://launchpad.net/~torios > More help : https://help.launchpad.net/ListHelp -- Regards -Israel ToriOS Team
#!/bin/bash if [ ! -z "$(which dbus)" ] then SHUTDOWN="bus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart" else SHUTDOWN="xterm -e 'sudo reboot'" fi if [ ! -z "$(which zenity)" ] then zenity --question --title="Restart" --text="Restart?" case $? in 0) echo "Reboot" "${SHUTDOWN}" ;; 1) exit 1;; -1) exit 2;; esac else if [ ! -z "$(which gxmessage)" ] then MESSAGE="$(which gxmessage) -borderless" else if [ ! -z "$(which xmessage)" ] then MESSAGE=xmessage else xterm -e "echo Reboot; ${SHUTDOWN}" fi ## XMESSAGE fi ## GXMESSAGE $MESSAGE -nearmouse -buttons "Yes:3,No:4" -name "Restart" "Restart?" case $? in 3) echo "Reboot" "${SHUTDOWN}" ;; *) echo "Not restarting" ;; esac fi ## zenity
-- Mailing list: https://launchpad.net/~torios-dev Post to : torios-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~torios-dev More help : https://help.launchpad.net/ListHelp