summarylogtreecommitdiffstats
path: root/lightdm.rules
blob: eda155bf304ea06048126da12c24ad543f3f0c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
        }
    }
});