You are not logged in.
This is essentially the same problem as "Unable to reboot/shutdown from Xfce (Debian Testing) by Pirlouis on 2011-10-11"
It is the same in that these buttons are greyed out. xfce is 4.10 on FreeBSD 9.1RC3.
My issue is only with out to activate the menu. I have configured the system as to have full access to the shutdown command as a non privileged user. The scripts ck-system-restart and ck-system-stop in /usr/local/lib/ConsoleKit/scripts work.
I do not see this as a FreeBSD issue. My issue is how to make the shutdown/restart buttons invoke the appropriate process. I had done what the install notes say should be added. This has no effect.
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
Offline
This is essentially the same problem as "Unable to reboot/shutdown from Xfce (Debian Testing) by Pirlouis on 2011-10-11"
It is the same in that these buttons are greyed out. xfce is 4.10 on FreeBSD 9.1RC3.
My issue is only with out to activate the menu. I have configured the system as to have full access to the shutdown command as a non privileged user. The scripts ck-system-restart and ck-system-stop in /usr/local/lib/ConsoleKit/scripts work.
You don't touch theses scripts, later, if you uninstall sysutils/consolekit, you'll get lots of warnings.
To be able to shutdown/reboot, you must create .pkla file in /usr/local/etc/polkit-1/localauthority/50-local.d/ (like below).
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 main 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=yesFor those who have working suspend/resume:
[Suspend]
Identity=unix-group:PUTYOURGROUPHERE
Action=org.freedesktop.upower.suspend
ResultAny=yes
ResultInactive=yes
ResultActive=yes
Offline
?? The first thing I did was make a .pkla file. As stated, that had no effect. The rest of the post was to indicate that as the X11 user I have access to shutdown. I assumed that the ConsoleKit scripts would be invoked by the menu. If that is the case, those scripts work, i.e., I can invoke them directly to shutdown or reboot.
Those options are however not available on the Start==>Log Out menu
Offline
Perhaps is this helpful:
exec ck-launch-session startx
in your ~/.profile or .xinitrc
I use Debian not FreeBSD, but I think, the files are the same.
Offline
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 532.75 KiB (Peak: 533.38 KiB) ]