This is what I get in my logs.
dbus[980]: [system] Rejected send message, 2 matched rules;
type="method_call", sender=":1.107" (uid=502 pid=34333 comm="xfce4
-power-manager --restart --sm-client-id 2160b")
interface="org.freedesktop.ConsoleKit.Manager" member="CanSuspend"
error name="(unset)" requested_reply="0" destination=":1.1" (uid=0
pid=1191 comm="/usr/local/sbin/console-kit-daemon --no-daemon ")
I have tried to add rules like this. I can't remember where I found it
but probably archwiki or similar.
# cat /usr/local/etc/polkit-1/rules.d/51-upower.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.upower.suspend" ||
action.id == "org.freedesktop.upower.hibernate") {
return polkit.Result.YES;
}
});
And also this in /usr/local/etc/polkit-1/localauthority/50-local.d/xfce
-power-manager.pkla
[Restart]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes
[Shutdown]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes
[Suspend]
Identity=unix-group:wheel
Action=org.freedesktop.upower.suspend
ResultAny=yes
ResultInactive=yes
ResultActive=yes
But nothing seems to work. Suspend/restart etc works despite of this.
I can't figure this out.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-xfce
To unsubscribe, send any mail to "[email protected]"