Hi Jack, I just rebooted, so I know this version works here... So here it is. Please run:
cd /path/to/download chmod +x torios-reboot ./torios-reboot I will rebuild the themes once we get this sorted out to use this program On 05/11/2015 08:11 AM, Cinque Port Computers wrote: > Hi Nio, Israel, > > I get this error now... > > > > > > > > > > JackT. ... -- Regards -Israel ToriOS Team
#!/bin/bash if [ ! -z "$(which dbus-send)" ] then SHUTDOWN="dbus-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