25-consolekit.rules 328 B

123456789
  1. polkit.addRule(function(action, subject) {
  2. if (action.id == "org.freedesktop.consolekit.system.stop" ||
  3. action.id == "org.freedesktop.consolekit.system.restart" ||
  4. action.id == "org.freedesktop.consolekit.system.hibernate" ||
  5. action.id == "org.freedesktop.consolekit.system.suspend") {
  6. return polkit.Result.YES;
  7. }
  8. });