After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596188 - Current user not pre-selected if contained in drop down list
Current user not pre-selected if contained in drop down list
Status: RESOLVED WONTFIX
Product: policykit-gnome
Classification: Platform
Component: authentication dialog
unspecified
Other Linux
: Normal normal
: ---
Assigned To: policykit-gnome-maint
policykit-gnome-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2009-09-24 13:25 UTC by Hernando Torque
Modified: 2019-02-23 02:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Selects the current user to authenticate by default (2.68 KB, patch)
2009-10-02 03:33 UTC, Robert Ancell
none Details | Review
Selects the current user to authenticate by default (2.74 KB, patch)
2009-10-02 08:01 UTC, Robert Ancell
none Details | Review

Description Hernando Torque 2009-09-24 13:25:41 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.
Comment 1 Robert Ancell 2009-10-01 07:33:40 UTC
Design changes in bug 596957 fix this problem.
Comment 2 Robert Ancell 2009-10-02 03:33:25 UTC
Created attachment 144563 [details] [review]
Selects the current user to authenticate by default
Comment 3 Martin Pitt 2009-10-02 07:05:35 UTC
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!
Comment 4 Robert Ancell 2009-10-02 08:01:28 UTC
Created attachment 144571 [details] [review]
Selects the current user to authenticate by default

Forgot to copy the user name
Comment 5 Martin Pitt 2010-11-04 21:15:44 UTC
For the record, I confirm that this works fine. We have carried this patch for a year without any problems.
Comment 6 André Klapper 2019-02-23 02:45:18 UTC
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.