Awesome WM & XDM reboot/halt permissions

Hi All,

I have FreeBSD 8.1, Xorg 7.5, Awesome 3.4 and XDM 1.1.8 installed on my PC.

I need to have permissions to reboot and halt PC in XDM and Awesome. It isn't necessary to have it on both ;) I used polkit-action for it - with no luck.

[CMD=""]polkit-action --set-defaults-any org.freedesktop.hal.power-management.shutdown yes[/cmd]
[cmd=]polkit-action --set-defaults-any org.freedesktop.hal.power-management.reboot yes[/CMD]

I do not want to use sudo in rc.lua for this purpose or edditing permission of shutdown, halt or reboot.

Have you any suggestion or idea for this case?

Thank you a lot!
 
And then, why not simply use the native, infallible and easy-to-use
% shutdown -r now
% shutdown -p now
instead of the messy HAL?
 
Great, that also works with Slim and LXDE. \o/
 
Back
Top