View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#145
OK, scratch that: that only worked once...

Do this, instead:

Do the sudoers trick outlined above;

/usr/share/dbus-1/services/reboot.service:
[D-BUS Service]
Name=com.misc.reboot
Exec=/usr/bin/sudo reboot
/etc/systemui/systemui.xml:
<menuitem priority="750" name="Reboot">
<icon>general_refresh</icon>
<callback service="com.misc.reboot" path="/com/misc/reboot" interface="com.misc.reboot" method="reboot" bus="session" autostart="true">
<argument type="boolean">true</argument>
</callback>
</menuitem>
 

The Following 4 Users Say Thank You to qwerty12 For This Useful Post: