Article 55RAV wmshutdown in 14.2

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, Richardlatest?d=yIl2AUoC8zA latest?i=hQrBbgpnX9I:mI-2O6zAZiY:F7zBnMy latest?i=hQrBbgpnX9I:mI-2O6zAZiY:V_sGLiP latest?d=qj6IDK7rITs latest?i=hQrBbgpnX9I:mI-2O6zAZiY:gIN9vFwhQrBbgpnX9I
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments