elogind: cherry-pick from current 252.9
This commit is contained in:
12
elogind/10-enable-elogind-power.rules
Normal file
12
elogind/10-enable-elogind-power.rules
Normal file
@@ -0,0 +1,12 @@
|
||||
polkit.addRule(
|
||||
function(action, subject) {
|
||||
if ( (action.id == "org.freedesktop.login1.reboot" ||
|
||||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
||||
action.id == "org.freedesktop.login1.power-off" ||
|
||||
action.id == "org.freedesktop.login1.power-off-multiple-sessions")
|
||||
&& subject.isInGroup("power") ) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user