milis/talimatname/genel/c/consolekit2/75-consolekit2.rules

10 lines
329 B
Plaintext
Raw Normal View History

2016-02-24 01:27:23 +01: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;
}
});