diff options
author | Maxime Gauduin | 2015-06-08 11:10:29 +0200 |
---|---|---|
committer | Maxime Gauduin | 2015-06-08 11:10:29 +0200 |
commit | df45ca73bfb0b44fe3bfa8531ef216fe6a295433 (patch) | |
tree | 32d195642059b56ea29c4f31a01c35f78354c86f /lightdm.rules | |
download | aur-df45ca73bfb0b44fe3bfa8531ef216fe6a295433.tar.gz |
Initial import
Diffstat (limited to 'lightdm.rules')
-rw-r--r-- | lightdm.rules | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lightdm.rules b/lightdm.rules new file mode 100644 index 000000000000..eda155bf304e --- /dev/null +++ b/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; + } + } +}); |