← Back to team overview

torios team mailing list archive

Re: Reboot Dialog 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

#!/bin/bash
MESSAGE="$(which gxmessage) -borderless" || MESSAGE=xmessage

$MESSAGE -nearmouse -buttons "Yes:3,No:4" "Restart?"
case $? in 
  3) echo "Reboot"
dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
  ;; 
  *)  echo "Not restarting"
  ;; 
esac

References