mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
16 lines
522 B
Text
16 lines
522 B
Text
|
polkit.addRule(function(action, subject) {
|
||
|
if (subject.user == "lightdm") {
|
||
|
polkit.log("action=" + action);
|
||
|
polkit.log("subject=" + subject);
|
||
|
if (action.id.indexOf("org.freedesktop.login1.") == 0) {
|
||
|
return polkit.Result.YES;
|
||
|
}
|
||
|
if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) {
|
||
|
return polkit.Result.YES;
|
||
|
}
|
||
|
if (action.id.indexOf("org.freedesktop.upower.") == 0) {
|
||
|
return polkit.Result.YES;
|
||
|
}
|
||
|
}
|
||
|
});
|