Fewer auth dialogs for Print Settings

The latest version of system-config-printer adds a new button to the main screen: Unlock. This is a GtkLockButton attached to the “all-edit” polkit permission for cups-pk-helper.

The idea is to make it work a bit more like the Printing screen in the GNOME Settings application. To make any changes you need to click Unlock first, and this fetches all the permissions you need in order to make any changes.

Screenshot from 2014-07-30 10:20:43

This is a change from the previous way of working. Before this, all user interface elements that made changes were available immediately, and permission was sought for each change required (adding a printer, fetching a list of devices, etc).

Screenshot from 2014-07-30 10:20:55

Hopefully it will now be a little easier to use, as only one authentication dialog will generally be needed rather than several as before.

Exceptions are:

  • the dialog for reading/changing the firewall (when there are no network devices discovered but the user is trying to add a network queue), and
  • the dialog for adjusting server settings such as whether job data is preserved to allow for reprinting

These are covered by separate polkit permissions and I think a LockButton can only be responsible for one permission.

Leave a reply

Comments are moderated. Comments that are inappropriate, offensive, vulgar, badly written or insulting will be deleted or edited to make the author look silly.