diff options
Diffstat (limited to 'system/lightdm/42-lightdm.rules')
-rw-r--r-- | system/lightdm/42-lightdm.rules | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/lightdm/42-lightdm.rules b/system/lightdm/42-lightdm.rules new file mode 100644 index 0000000000..eda155bf30 --- /dev/null +++ b/system/lightdm/42-lightdm.rules @@ -0,0 +1,15 @@ +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; + } + } +}); |