Translations:Manjaro Polkit Rules/9/fr

Revision as of 07:40, 23 May 2024 by Dadu042 (talk | contribs) (Created page with "polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) { return polkit.Result.YES;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

polkit.addRule(function(action, subject) {

    if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});

The second rule allows any user to control if the system should be shut down or restarted