3d667b6
polkit.addRule(function(action, subject) {
3d667b6
    if (subject.user == "lightdm") {
9642e86
        polkit.log("action=" + action);
9642e86
        polkit.log("subject=" + subject);
252080d
        if (action.id.indexOf("org.freedesktop.login1.") == 0) {
252080d
            return polkit.Result.YES;
252080d
        }
3d667b6
        if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) {
252080d
            return polkit.Result.YES;
3d667b6
        }
3d667b6
        if (action.id.indexOf("org.freedesktop.upower.") == 0) {
252080d
            return polkit.Result.YES;
3d667b6
        }
3d667b6
    }
3d667b6
});