summarylogtreecommitdiffstats
path: root/lightdm.rules
diff options
context:
space:
mode:
authorMaxime Gauduin2015-06-08 11:10:29 +0200
committerMaxime Gauduin2015-06-08 11:10:29 +0200
commitdf45ca73bfb0b44fe3bfa8531ef216fe6a295433 (patch)
tree32d195642059b56ea29c4f31a01c35f78354c86f /lightdm.rules
downloadaur-df45ca73bfb0b44fe3bfa8531ef216fe6a295433.tar.gz
Initial import
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;
+ }
+ }
+});