Manjaro Difference between revisions of "Translations:Manjaro Polkit Rules/10/ru"

Difference between revisions of "Translations:Manjaro Polkit Rules/10/ru"

From Manjaro
(Created page with "polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.login1.power-off" || action.id == "org.freedesktop.login1.reboot" || action...")
 
(No difference)

Latest revision as of 07:06, 2 February 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Manjaro Polkit Rules)
polkit.addRule(function(action, subject) {
     if (action.id == "org.freedesktop.login1.power-off" ||
         action.id == "org.freedesktop.login1.reboot" ||
         action.id == "org.freedesktop.login1.hibernate" ||
         action.id == "org.freedesktop.login1.suspend") {
         return polkit.Result.YES;
     }
 });
 
The third rule allows the upower daemon to hibernate or suspend the system

polkit.addRule(function(action, subject) {

    if (action.id == "org.freedesktop.login1.power-off" ||
        action.id == "org.freedesktop.login1.reboot" ||
        action.id == "org.freedesktop.login1.hibernate" ||
        action.id == "org.freedesktop.login1.suspend") {
        return polkit.Result.YES;
    }
});

Третье правило позволяет демону upower переводить систему в спящий режим или приостанавливать ее работу

Cookies help us deliver our services. By using our services, you agree to our use of cookies.