D
Deleted member 63539
Guest
I already followed the guide of
I don't use any login manager but
My .xinitrc:
My polkit rules:
/usr/local/etc/polkit-1/rules.d/51-gh.rules
pkg -D xfce4-session
but it doesn't work. The shutdown and reboot buttons are still greyed out.I don't use any login manager but
startx
manually.My .xinitrc:
exec startxfce4 --with-ck-launch-session --dbus-launch --exit-with-session
My polkit rules:
/usr/local/etc/polkit-1/rules.d/51-gh.rules
Code:
polkit.addRule(function (action, subject) {
if ((action.id == "org.freedesktop.consolekit.system.restart" ||
action.id == "org.freedesktop.consolekit.system.stop")
&& subject.isInGroup("gh")) {
return polkit.Result.YES;
}
});
polkit.addRule(function (action, subject) {
if (action.id == "org.freedesktop.consolekit.system.suspend"
&& subject.isInGroup("gh")) {
return polkit.Result.YES;
}
});