Is it possible to reboot and shutdown your computer using UPower? I have these entries for hibernate and suspend in Fluxbox
Code:
[exec] (suspend) {dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend}
[exec] (hibernate) {dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate}
I'd like to find similar commands to stop the PC because I'm currently using ConsoleKit and I don't think it's elegant to mix the above with the following
Code:
[exec] (reboot) {dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart}
[exec] (shutdown) {dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit" /org/feedesktop/ConsoleKit/Manager org.freedesktop.Consolekit.Manager.Stop}
I have googled a bit and have also checked on Arch Wiki, but I was unable to find the appropriate command to send.