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;
8 if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) {
9 return polkit.Result.YES;
11 if (action.id.indexOf("org.freedesktop.upower.") == 0) {
12 return polkit.Result.YES;