Bug 402186

Summary: Copy & Paste doesn't work to Desktop File settings on Wayland
Product: [Plasma] plasmashell Reporter: Rainer Finke <rainer>
Component: generic-waylandAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde, nate
Priority: NOR    
Version First Reported In: 5.18.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rainer Finke 2018-12-16 11:01:00 UTC
If I open the desktop file settings of an application to modify e.g. the run command, I cannot use copy & paste on Wayland. 
What works is to copy & paste text from the desktop file settings window to another program, but copy & paste from another program to the desktop file settings doesn't. Example: Try to paste the following text "GTK_USE_PORTAL=1" to Firefox as a run command, it will not work and you have to type it.

STEPS TO REPRODUCE
1. Copy some text
2. Open the .desktop file settings of any program
3. Paste Text

OBSERVED RESULT
Nothing is pasted or only an old text

EXPECTED RESULT
Copy & paste should work

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.53
Qt Version: 5.12
Comment 1 David Edmundson 2018-12-17 12:43:18 UTC
I assume you're trying to copy from an X app?
Does it paste correctly into another wayland place, like kate?
Comment 2 Rainer Finke 2018-12-17 21:15:03 UTC
I run all KDE apps on Wayland, so I've tried to copy from Konsole/Kate. If I copy from e.g. Firefox on XWayland it is the same issue. 
Yes, all other applications (Wayland or XWayland) do copy and paste correctly.
Comment 3 Bug Janitor Service 2019-01-01 03:44:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 David Edmundson 2019-01-01 15:03:08 UTC
reopening
Comment 5 Patrick Silva 2019-02-24 17:48:29 UTC
Here I copied a text from Kate (Wayland) to Opera browser (Xwayland) as expected.
So I copied a text from Opera browser to Kate and it crashed.
Apparently it crashed, because it disappeared from my screen but coredumpctl shows no Kate crash.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.1
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Comment 6 Patrick Silva 2019-02-24 18:39:41 UTC
bug 404210 seems related/duplicate.
Comment 7 Rainer Finke 2019-10-12 07:38:47 UTC
Still doesn't work with Plasma 5.17 Beta
Comment 8 Rainer Finke 2020-04-21 18:19:04 UTC
Still doesn't work

Operating System: Arch Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.15.0
Kernel Version: 5.6.5-arch3-1
Comment 9 Nate Graham 2021-03-04 20:49:09 UTC
This was fixed in Plasma 5.21.