Shutdown and Restart through gnome by SLiM

Hi,
I just solved my problem about shutdown through gnome when I used SLiM as login manager. so I want to share this to folks with same problem.
in /usr/local/share/polkit-1/actions/org.freedesktop.consolekit.policy
Edit the following sections:
Code:
<action id="org.freedesktop.consolekit.system.stop">

so it's allow inactive member says:
Code:
<allow_inactive>yes</allow_inactive>
And,
Code:
<action id="org.freedesktop.consolekit.system.restart">
so it's allow inactive member says:
Code:
<allow_inactive>yes</allow_inactive>
cheers!
 
x11-wm/xfce4-session prints:
Code:
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

This might work for Gnome too. You also need to make sure Consolekit is properly started. In your ~/.xinitrc make sure Gnome is started correctly:
Code:
exec ck-launch-session dbus-launch --exit-with-session gnome-session
 
What problem?

It's better if you open a new thread if it's something unrelated to your initial post.
Multiple, different, questions in the same thread or post usually leads to chaos.
 
Back
Top