Red Hat Bugzilla – Bug 1285342
copy/pasting passwords from keepass (xwayland) to wayland apps doesn't work
Last modified: 2017-07-22 14:03:59 EDT
Description of problem:
when trying to copy/paste a password from keepass to e.g epiphany (or any other gtk3/wayland apps) under a gnome-wayland session, nothing gets pasted.
copying to other xwayland apps like spotify works as expected.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. open entry in keepass running under xwayland (gnome-wayland-session)
2. select/unmask password entry, mark text and hit ctrl+c/rightclick-copy
3. try to paste password in a gtk3/wayland app (using keyboard or mouse)
password doesn't get pasted
password does get pasted
I can confirm these. And even worse keepass is hanging. All entries are suddenly in grey. You cannot even close the application.
Also opening the entry and copying it does not work if you try to copy it into a shell console. You can although copy it e.g. into the Atom editor (but only if you open the entry first). Ctrl-C from to a closed entry does not work and makes everything hang as mentioned above.
Keepass is an important application and should work with Wayland.
When will this be fixed? Ctrl-C on KeePass still leads to a hanging program.
All entries and menues become white. Closing of program is not possible. So I have to do "killall mono" to stop the program.
Why does KeePass behave so strange running in a Wayland environment?
(In reply to Frank Ansari from comment #2)
> When will this be fixed?
Maybe never. KeePass relies on Mono's WinForms, which is no-longer being actively developed (see, e.g., http://forums.dotnetfoundation.org/t/anyone-porting-winforms-mono-to-net-core/898/2). If it turns out that this is where the bug lies, we could be out of luck.
Still, there are things we can look in to. What can you tell us about the circumstances in which this happens? I'm not able to reproduce it in a virtual machine.
My recollection is that KeePass (sometimes?) use xdotool for interacting with the clipboard. Could you try "sudo rpm -e xdotool --nodeps" and see if that makes any difference?
If this is true then there are two choices: either to forget about KeePass or about Wayland. But regarding Wayland I don't know whether I have a chance. As far as I understood it Wayland will replace Xorg in the near future in Fedora. So I thought the best stragey is to inform you here so this can be fixed.
I have removed xdotool and have the same effect.
What I use is a pyhsical PC where I have Fedora 23 installed (updated from Fedora 22).
I already guessed that it might have something todo with Mono since other programs do not have such symtoms. I mean there are smaller effects like the cursor is sometimes not available in the gnome terminal and I have to click with the mouse several times until I can use it (cusrsor is an empty block first and I have to click until it becomes a filled block).
What I can do in KeePass is to open the entry and I can copy the password from there. But even then I cannot paste it into a gnome terminal. But I could open an editor like atom and paste it there. From there I can copy & paste it into the gnome terminal. This is very unconvient.
Today I tested the behaviour of keepassx. This application does not use mono. But also with keepassx copy & paste into the gnome terminal is not possible. The only advantage is that the application is not hanging when I try to copy something.
Also here I have to use some xwayland application like the atom editor and paste the password in and then copy it from there and then copy it into the gnome terminal.
Any updates on this? As far as I understood only keepass does use mono and Winforms but not keepassx. So why does even keepassx not work with Wayland?
(In reply to Frank Ansari from comment #6)
> Any updates on this? As far as I understood only keepass does use mono and
> Winforms but not keepassx. So why does even keepassx not work with Wayland?
As you say, keepassx is an entirely separate piece of software. If you're having trouble with that, you'll need to log a separate bug.
Good news is that in fc24 KeePass is no longer freezing wehn I try to copy the password.
But apart from this the behaviour is as before.
After starting my computer most oftime times I can paste the password into a Gnmome shell when I do this direcly after startup. Lateron I have to do the workaround to put the password into some editor first and copy from there into the Gnome shell.
This is a strange effect. Why does it sometimes work and sometimes not?
This bug is currently preventing me from using Wayland on F24. I absolutely rely on KeePass...
I have to correct myself. The freezing issue is not solved. Just now I had again to do "killall mono" in order to close KeePass.
For some reason everything works fine after I started my Gnome session. But some minutes later the situation is changing an KeePass becomes unusuable.
*** Bug 1321454 has been marked as a duplicate of this bug. ***
Just to add that this is also present in Fedora 25 Alpha. If I run it with a --debug option (I guessed it as it's not listed in the man page), I get:
Created new window in existing browser session.
at which point both Keepass and my browser (Chrome) freeze until I kill Keepass, which causes the browser to spring to life again. While frozen, Keepass displays the same grey list of items as Frank reported.
It works fine under an Xorg session.
I can confirm this. KeePass became practically unusable since the introduction of Wayland.
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Still valid in F24 so please bump the version.
This issue appears also on a fresh installation of Fedora 25.
Copy and paste works after booting the PC. I then closed the applicatio and tried again some time later (about 30 min perhaps). I could not copy and paste anymore.
I just filed an upstream bug here: https://bugzilla.gnome.org/show_bug.cgi?id=778979 (GNOME bugtracker)
Sorry, I guess not upstream but potentially related other application (since I filed it for GNOME 3 and not keepass itself). However, since there seem other tickets about clipboard oddities, this might also be a general GNOME 3 or XWayland issue I guess... so let's hope the GNOME devs have an idea what might be the culprit and whether there's something that can be fixed to make this work.
Anyway, wouldn't XWayland apps also potentially not get the security benefit of preventing event spying/injection and other stuff from other X11 apps which Wayland now gives (as far as I'm informed)? If that is the case, it would be somewhat unfortunate if especially for a sensitive password manager app there wasn't some sort of long-term plan to potentially migrate keepass to native Wayland status..
It is really even worse than a copy problem or keepass freeze. The behaviour affects other applications like Chrome.
Today I noticed that moneyplex was hanging when I wanted to send money.
Opeing and closing moneyplex did not help.
Then I had the idea to close keepassx directly after I entered my password into moneyplex and this helped.
I really would appreciate if someone could fix either keepass or keepassx or both.
For what it's worth, I made a separate ticket for keepass making GNOME Wayland hang here: https://bugzilla.gnome.org/show_bug.cgi?id=778275
I also encounter the problems mentionned here, with F26 alpha.
FWIW the latest KeePass release has a workaround for this bug. Install xsel and xdotool to make it work.
(In reply to Michael Monreal from comment #22)
> FWIW the latest KeePass release has a workaround for this bug.
Unfortunately, latest keepass isn't provided for F24..F26:
(F24: 2.32-2, F25: 2.34-4, F26: 2.35-3, F27: 2.36-1).
It builds fine though (and actually works), I have builds in copr.
> Install xsel and xdotool to make it work.
I was told xdotool doesn't work with Wayland? I don't know the difference to XWayland though, and whether the latter is relevant to keepass.