jobextra/consolekit2/25-consolekit.rules

9 lines
328 B
Plaintext
Raw Normal View History

2022-10-09 16:22:47 +02:00
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.consolekit.system.stop" ||
action.id == "org.freedesktop.consolekit.system.restart" ||
action.id == "org.freedesktop.consolekit.system.hibernate" ||
action.id == "org.freedesktop.consolekit.system.suspend") {
return polkit.Result.YES;
}
});