FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart?

Bernt Hansson bah at bananmonarki.se
Wed Dec 28 02:22:25 UTC 2016


On 2016-12-28 03:16, Bernt Hansson wrote:
> On 2016-12-27 05:02, David Christensen wrote:
>>
>> How do I enable GUI Shutdown and Restart capabilities in both XDM and 
>> XFCE?
> You need to write some policykit/consolekit rules, can't find them 
> now, and you ned HAL.

Ok. I found it.

To be able to shutdown or reboot your system, you'll have to add a .pkla file
in /usr/local/etc/polkit-1/localauthority/50-local.d directory. Which looks
like this (replace PUTYOURGROUPHERE by your group):

[Restart]
Identity=unix-group:PUTYOURGROUPHERE
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Shutdown]
Identity=unix-group:PUTYOURGROUPHERE
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes

For those who have working suspend/resume:

[Suspend]
Identity=unix-group:PUTYOURGROUPHERE
Action=org.freedesktop.upower.suspend
ResultAny=yes
ResultInactive=yes
ResultActive=yes

Source:  https://forums.freebsd.org/threads/45643/




More information about the freebsd-questions mailing list