translator
11,127
edits
(Created page with "polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) { return polkit.Result.YES;...") |
(Created page with "polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.login1.power-off" || action.id == "org.freedesktop.login1.reboot" || action...") |
||
Line 34: | Line 34: | ||
}); | }); | ||
Третье правило позволяет демону upower переводить систему в спящий режим или приостанавливать ее работу | |||
polkit.addRule(function(action, subject) { | polkit.addRule(function(action, subject) { |