summarylogtreecommitdiffstats
path: root/lightdm.rules
diff options
context:
space:
mode:
authorXiao-Long Chen2015-06-08 20:33:31 -0400
committerXiao-Long Chen2015-06-08 20:33:31 -0400
commit205d2069a0e3f7160b112d0403b0232aa4256b57 (patch)
tree09d8ec911cb19c094ce8f02d1ae2e7236e8360dd /lightdm.rules
downloadaur-205d2069a0e3f7160b112d0403b0232aa4256b57.tar.gz
Import from old AUR
Diffstat (limited to 'lightdm.rules')
-rw-r--r--lightdm.rules15
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;
+ }
+ }
+});