Bug 1827641 - Copy and paste stopped working under Wayland
Summary: Copy and paste stopped working under Wayland
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: keepassxc
Version: 31
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Germano Massullo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-24 12:21 UTC by Chris Suszynski
Modified: 2021-04-15 02:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-20 08:49:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github keepassxreboot keepassxc issues 4105 0 None open Copy and paste suddenly stopped working under Wayland 2020-08-20 08:47:13 UTC

Description Chris Suszynski 2020-04-24 12:21:30 UTC
Description of problem:

Running Fedora 31 with Wayland I'm having problems with copy and paste. I can copy values from KeePass XC to outside (from keepassxc to firefox as example), but I can't copy values from outside KeePass XC and paste it in (from firefox to keepassxc).

Version-Release number of selected component (if applicable): 2.5.4-1.fc31


How reproducible: everytime


Steps to Reproduce:
1. Run Fedora 31 with default Gnome at Wayland and keepassxc and firefox installed
2. Copy text from browser, gedit or any other place
3. Try to paste text within keepass xc

Actual results:

Paste in Keepass XC isn't active. Ctrl+v does nothing.

Expected results:

Copied text should be pasted in KeePass XC. Ctrl+v should work.


Additional info:

This is also tracked in here [1], but without much traction.

This issue can be overcome at Fedora level, by applying a walk around [2]:


  sudo sed -Eri 's/^Exec=(keepassxc.*)/Exec=env XDG_SESSION_TYPE=gtk \1/' \
    /usr/share/applications/org.keepassxc.KeePassXC.desktop


[1] https://github.com/keepassxreboot/keepassxc/issues/4105
[2] https://github.com/keepassxreboot/keepassxc/issues/4105#issuecomment-618643306

Comment 1 Germano Massullo 2020-08-20 08:49:49 UTC
This bug can only be addressed upstream

Comment 2 Scott Williams 2021-03-25 15:24:56 UTC
FWIW, I found a workaround for Fedora, based on the upstream comment - https://github.com/keepassxreboot/keepassxc/issues/4105#issuecomment-806940860

While upstream appears to be focusing on fixing it in flatpak, it can be easily fixed for Fedora by patching the desktop file /usr/share/applications/org.keepassxc.KeePassXC.desktop with these two lines:

Exec=QT_QPA_PLATFORM=xcb keepassxc %f
TryExec=QT_QPA_PLATFORM=xcb keepassxc


Note You need to log in before you can comment on or make changes to this bug.