9 lines
329 B
Text
9 lines
329 B
Text
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;
|
|
}
|
|
});
|
|
|