lightdm.rules 522 B

12345678910111213141516
  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. });