summaryrefslogtreecommitdiff
path: root/lightdm/lightdm.rules
blob: eda155bf304ea06048126da12c24ad543f3f0c07 (plain)
    1 polkit.addRule(function(action, subject) {
    2     if (subject.user == "lightdm") {
    3         polkit.log("action=" + action);
    4         polkit.log("subject=" + subject);
    5         if (action.id.indexOf("org.freedesktop.login1.") == 0) {
    6             return polkit.Result.YES;
    7         }
    8         if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) {
    9             return polkit.Result.YES;
   10         }
   11         if (action.id.indexOf("org.freedesktop.upower.") == 0) {
   12             return polkit.Result.YES;
   13         }
   14     }
   15 });

Generated by cgit