0

elogind: cherry-pick from current 252.9

This commit is contained in:
eleksir
2024-01-06 19:09:23 +03:00
parent 50293af8b4
commit 693691f071
7 changed files with 448 additions and 0 deletions

View 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;
}
}
);