Menu

#1664 Cannot Copy/Paste in Linux

KeePass_2.x
open
nobody
None
9
2020-11-25
2017-10-02
Daniel Boyd
No

When I attempt to copy from KeePass2, the KeePass window loses focus and then becomes unresponsive and nothing is copied to the clipboard.

It appears that xsel locks up:

ps x | grep xsel
19475 tty2 S+ 0:00 /usr/bin/xsel --input --clipboard

If I kill the xsel process, KeePass resumes working, and begins the copy countdown timer. But still nothing is copied to the clipboard.

Uninstalling xsel makes the lock-up issue go away, but still nothing is copied to the clipboard.

Steps to reproduce:
1) Launch KeePass2
2) Click on an entry in the database
3) Type CTRL-C (or right-click -> 'Copy Password')

Excpected Results:
Password copied to clipboard

Actual Results:
KeePass locks up; no password copied

Details of my system:
Debian Linux - Buster (testing)
GNOME 3.26.0 (wayland)

uname -a
Linux daniellenovo 4.12.0-2-amd64 #1 SMP Debian 4.12.13-1 (2017-09-19) x86_64 GNU/Linux

xsel --version
xsel version 1.2.0 by Conrad Parker conrad@vergenet.net

keepass2 --version
KeePass 2.36
Copyright © 2003-2017 Dominik Reichl

A side note: earlier, when I uninstalled and later re-installed xsel, KeePass started working again. But it has since stopped working again.. so the issue may be intermittent.

Discussion

  • Paul

    Paul - 2017-10-03

    Do you have xdotool installed as well? It is recommended for clipboard operations.

    cheers, Paul

     
    • Daniel Boyd

      Daniel Boyd - 2017-10-03

      yes

      xdotool --version
      xdotool version 3.20160805.1

       
  • Paul

    Paul - 2017-10-04

    I don't have any other suggestions.

    cheers, Paul

     
  • Chris Swenson

    Chris Swenson - 2017-12-05

    This also affects me. I checked for hung xsel processes and found 4 after repeated attempts to copy from keepass2. Once I killed all of them and restarted keepass2, it worked, but I think I will have to do this every time keepass2 starts. Perhaps it is related to starting keepass2 on login?

    Edited to add version info:

    uname -a
    Linux pendragon 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

    xsel --version
    xsel version 1.2.0 by Conrad Parker conrad@vergenet.net

    keepass2 --version
    KeePass 2.36

     

    Last edit: Chris Swenson 2017-12-28
  • Chris Swenson

    Chris Swenson - 2017-12-29

    I continue to have this issue. Daniel, have you found a workaround? I reinstalled xdotool and xsel, but still have the issue. I wonder if these X tools are irrelevant now on Wayland.

     
    • John Apple II

      John Apple II - 2019-01-18

      The only thing that I've seen that might be relevant is https://github.com/rockihack/keepassx/blob/wayland-autotype/wayland.txt However, I have no idea how to implement this in KeePass - I'm not a coder.

      It looks like KeePass will need to redirect input to uinput in order to work with Wayland. Because Wayland is simpler and designed to remove insecure processes (and is still relatively new), it is missing support for many things like middle-click text selection, or sharing clipboard easily between X and Wayland apps.

      Currently I'm struggling with this issue on Fedora 29

       

      Last edit: John Apple II 2019-01-18
  • szotsaki

    szotsaki - 2020-11-25

    I also can reproduce this lock-up without Wayland, solely on X.

    I'd like to help with some debug logs; feel free to ask away if you need anything.

     

Log in to post a comment.

MongoDB Logo MongoDB