Manjaro Translations:Manjaro Polkit Rules/10/fr

Translations:Manjaro Polkit Rules/10/fr

From Manjaro
Revision as of 07:40, 23 May 2024 by Dadu042 (talk | contribs) (Created page with "polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.login1.power-off" || action.id == "org.freedesktop.login1.reboot" || action...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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