diff options
author | Maxime Gauduin | 2015-06-08 11:10:31 +0200 |
---|---|---|
committer | Maxime Gauduin | 2015-06-08 11:10:31 +0200 |
commit | 4d23336db5e4770883764c8426165364590894e8 (patch) | |
tree | 57b3795cc2cd5fe41f53157248f87318562a3cb7 /lightdm.rules | |
download | aur-4d23336db5e4770883764c8426165364590894e8.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; + } + } +}); |