Guest User

xbmc.rules

a guest
Sep 4th, 2013
444
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. polkit.addRule(function(action, subject) {
  2. if(action.id.match("org.freedesktop.login1.") && subject.isInGroup("power")) {
  3. return polkit.Result.YES;
  4. }
  5. });
  6.  
  7. polkit.addRule(function(action, subject) {
  8. if (action.id.indexOf("org.freedesktop.udisks") == 0 && subject.isInGroup("storage")) {
  9. return polkit.Result.YES;
  10. }
  11. });
RAW Paste Data