wmshutdown in 14.2
by kel_en from LinuxQuestions.org on (#55RAV)
I'm using 14.2 (64) with a WindowMaker desktop in a Fujitsu Lifebook S7220. Works great. I would like my wife to abandon her Debian laptop for this machine but the shutdown procedure is a problem for her. The simple answer is to change to user level 4 and boot into KDE but I would like to keep the WindowMaker for my use. I found the slackpackage wmshutdown and installed that. It built without error. The readme says I'll have to modify my polkit-1 rules. I wrote a rule, and put it in /usr/share/polkit-1/rules.d/ but I get an error and no shut down.
This is the rule:
Code:polkit.addRule(function (action, subject) {
if ((action.id == "org.freedesktop.login1.Reboot" ||
action.id == "org.freedesktop.login1.Halt")
&& subject.isInGroup("power")) {
return polkit.Result.YES;
}
});This is the error:
Code:('The name org.freedesktop.login1 was not provided by any .service files'.)I would like to learn more about polkit rules since this is new to me. Searching gets lots of results for systemd, not helpful.
Thanks in advance, Richard


This is the rule:
Code:polkit.addRule(function (action, subject) {
if ((action.id == "org.freedesktop.login1.Reboot" ||
action.id == "org.freedesktop.login1.Halt")
&& subject.isInGroup("power")) {
return polkit.Result.YES;
}
});This is the error:
Code:('The name org.freedesktop.login1 was not provided by any .service files'.)I would like to learn more about polkit rules since this is new to me. Searching gets lots of results for systemd, not helpful.
Thanks in advance, Richard