diff options
author | Xiao-Long Chen | 2015-06-08 20:33:31 -0400 |
---|---|---|
committer | Xiao-Long Chen | 2015-06-08 20:33:31 -0400 |
commit | 205d2069a0e3f7160b112d0403b0232aa4256b57 (patch) | |
tree | 09d8ec911cb19c094ce8f02d1ae2e7236e8360dd /lightdm.rules | |
download | aur-205d2069a0e3f7160b112d0403b0232aa4256b57.tar.gz |
Import from old AUR
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; + } + } +}); |