Bug 502564 - Copy-pasting between applications that use different graphics toolkits (GTK/Qt, etc.) or protocols (X11/Wayland) sometimes results in the clipboard being split into multiple "clipboards".
Summary: Copy-pasting between applications that use different graphics toolkits (GTK/Q...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 6.3.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-08 13:33 UTC by andrew
Modified: 2025-07-03 18:03 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
clipboard settings screenshots (1.12 MB, application/gzip)
2025-06-16 17:42 UTC, andrew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrew 2025-04-08 13:33:12 UTC
SUMMARY
It seems that every now and then, when copying and pasting between applications that use different graphical toolkits (GTK, Qt, etc.) and/or protocols (X11/Wayland), the copied text can only be pasted into other apps "made the same way." So, for example, if I copy from a GTK/X11 app and paste into another GTK/X11 app, it works fine. But if I copy from a GTK/X11 app and paste into a Qt/Wayland app, the pasted text isn't the most recent one, but the previous one.

STEPS TO REPRODUCE
1. copy text "AAAAA" from dolphin 
2. paste in kate, (it paste "AAAAA")
3.  copy text "BBBBB" from lutris
4. paste in vscode, (it paste "BBBBB")
5. paste in kate, (it paste "AAAAA" instead of "BBBBB")

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.12.21-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 20 × Intel® Core™ i5-14600K
Memory: 31.1 GiB of RAM
Graphics Processor: AMD Radeon RX 550 / 550 Series
Comment 1 TraceyC 2025-04-09 18:28:03 UTC
I'm not able to reproduce this in git-master or 6.3.4
Given that it only happens sometimes, I'll leave this open in case someone else is able to reproduce it.


Tested with:
KDE: Kate & KWrite
Electron: VS Code & Obsidian notes

1. Copy text "AAAAA" from dolphin 
2. Paste in kate, (it pasted "AAAAA")
3. Copy text "BBBBB" from Obsidian Notes
4. Paste in VS Code, (it pasted "BBBBB")
5. Paste in kate, (it pasted "BBBBB" as expected)

Also tested:
Copy from Kate to gedit
gedit to Kate
gedit to and from Obsidian Notes
gedit to and from VS Code
Generally pasting text from one application to another
Comment 2 andrew 2025-05-27 18:13:23 UTC
i reproduced the same bug today, seem that until i cleanup the clipboard history copy-paste dont works. 

in journalctl i found these logs

May 27 20:09:52 arch plasmashell[1971]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:32: TypeError: Cannot read property 'split' of undefined
May 27 20:09:52 arch plasmashell[1971]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:32: TypeError: Cannot read property 'split' of undefined
May 27 20:09:52 arch plasmashell[1971]: qrc:/qt/qml/org/kde/plasma/private/clipboard/UrlItemDelegate.qml:32: TypeError: Cannot read property 'split' of undefined
Comment 3 John Kizer 2025-06-13 20:59:26 UTC
Hi - just in case there's something that could help narrow things down, could you please attach a screenshot of your Clipboard settings? You could get to those by opening the Clipboard widget, then clicking the "Configure Clipboard" button toward the top-right.

Thanks!
Comment 4 andrew 2025-06-16 17:42:50 UTC
Created attachment 182308 [details]
clipboard settings screenshots
Comment 5 TraceyC 2025-06-16 19:27:25 UTC
Thanks for the screenshots

Clipboard history: Save across desktop sessions
Unchecked - Keep the selection and clipboard the same
Non-text selection: Only when explicitly copied

With these same settings, I'm still not able to reproduce this.