GNOME Bugzilla – Bug 573689
Unable to copy/paste a password
Last modified: 2011-09-15 08:24:15 UTC
In the seahorse password windows, when showing a password (say, for instance, a 65 hex chars WPA key), the password can't be copied to clipboard to be pasted somewhere else (for instance, into network manager's password prompt). Note that it doesn't work either by right click menu (there isn't one), nor by using ctrl+c, nor by middle-clicking. While it is understandable the password is not copiable when hidden, it makes no sense to have such a restriction for shown passwords: memory-wise, it has been through the whole rendering stack so it hasn't been kept in safe memory anyway, and usability-wise, it is PITA to copy manually long passphrases like the one in this example. As a side note, the password can't be selected by double-clicking in the area. Selecting and copying works in gnome-keyring-manager. Seahorse 2.24.1 from current Debian Sid.
Thanks for taking the time to file this bug report. We're working to combine our implementation of our password control with that from GTK+ proper. Discussion is happening on gtk-devel mailing list. This effort will fix those issues.
*** Bug 588431 has been marked as a duplicate of this bug. ***
*** Bug 577710 has been marked as a duplicate of this bug. ***
I was going to file a bug report about password copying usability, but I guess I can just comment on it. Using Seahorse 2.32.0, one has to click on "password" to unfold the text box, click on "show the password", then select and finally copy it. Then close it all. I think it should be easier and safer to add a "copy to clipboard" button that copies the password without having to show it in clear form on the screen. Maybe the window would even close itself after hitting the button.
Sounds like a good idea. Do you want to give a shot at implementing that "copy to clipboard" button?
I took a quick look but sorry, C and GTK development are out of my scope. Should be fairly easy though. I know how to do it in HTML and JS if you're interested. ;-)
This is now fixed. Passwords can be copied out of the password entry, similar to any other password prompt in GNOME.