rusty-snake's Tips & Tricks

Collection of useful commands and configs.

View on GitHub
25 June 2022

Passwordless cups

by rusty-snake

Annoyed by entering your password every time you change printer settings in gnome-control-center?

Create /etc/polkit-1/rules.d/40-passwordless-cups.rules:

polkit.addRule(function(action, subject) {
    if (action.id == "org.opensuse.cupspkhelper.mechanism.all-edit" &&
        subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});
tags: