Can you explain to me why I need an extra dbus-service for this. Why not just uncomment the already existing reboot entry in systemui.xml?
sudo gainroot echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers update-sudoers nano /usr/share/dbus-1/services/reboot.service # Paste this into it: [D-BUS Service] Name=com.misc.reboot Exec=/usr/bin/sudo reboot # CTRL + O to save, CTRL+X to quit nano nano /etc/systemui/systemui.xml # Paste this into it: <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> # CTRL + O to save, CTRL+X to quit nano killall systemui