GNOME Bugzilla – Bug 596188
Current user not pre-selected if contained in drop down list
Last modified: 2019-02-23 02:45:18 UTC
If the user, that started an application that requests authentication, is contained in the drop down list of the authentication dialog, then he should be pre-selected (thus reducing the number of clicks needed in the common case). Currently the drop down box shows the disabled item "Select user..." which IMO doesn't make it clear that there's need for user action (although you can only cancel at that time). See https://bugs.launchpad.net/policykit-gnome-1/+bug/435227 for reference.
Design changes in bug 596957 fix this problem.
Created attachment 144563 [details] [review] Selects the current user to authenticate by default
Please note that I now get crashes when I do # only have a single admin user $ pkexec true # works $ sudo adduser joe admin $ pkexec true # also works, I get "Martin Pitt" preselected; press cancel $ sudo deluser joe admin # boom So please do not apply this yet until this is sorted out. Thanks for the patch!
Created attachment 144571 [details] [review] Selects the current user to authenticate by default Forgot to copy the user name
For the record, I confirm that this works fine. We have carried this patch for a year without any problems.
policykit-gnome is not under active development anymore. Its codebase has been archived: https://gitlab.gnome.org/Archive/policykit-gnome/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather reactivate the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.