Bug 514420

Summary: Klipper doesn't put graphical item in system clipboard on first selection: needs to to be done twice
Product: [Plasma] plasmashell Reporter: Paul Hands <jphands>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: normal CC: kdedev, qydwhotmail
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul Hands 2026-01-10 18:53:21 UTC
SUMMARY
Using Klipper on Kubuntu 25.10, with a large clipboard history with lots of graphical items, picking a graphical item from further down the history moves it to the top of the list, but does not put it in the system paste buffer.  In order for the item moved to the top to be paste-able, I have to click on it again.


STEPS TO REPRODUCE
1. Use klipper with a 2000 item history and have many graphical as well as textual items in the history.
2. Go down the history list and select a graphical item that is not the top item.
3. Attempt to paste that item into e.g. a Facebook post.  Nothing is pasted.
4. Go back to klipper, and click on the item, which is now at the top of the history.
5. Return to the app, and paste - it now works.

OBSERVED RESULT
The item is not pasted: nothing is pasted..not even the previously used history item.

EXPECTED RESULT
The selection is posted on the first attempt.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 25.10
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-8-generic (64-bit)
Graphics Platform: Wayland
Processors: 48 × AMD Ryzen Threadripper 7960X 24-Cores
Memory: 192 GiB of RAM (188.2 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Manufacturer: ASUS

ADDITIONAL INFORMATION
This is very repeatable, including across system reboots.  It was working OK until a couple of weeks ago, but I don't know what, if any, system changes triggered it.
Comment 1 TraceyC 2026-01-12 17:47:48 UTC
Thanks for the bug report. Can you please re-test with Frameworks 6.22 when your system updates to that version? It included a bunch of clipboard fixes.
Comment 2 Paul Hands 2026-01-12 21:57:46 UTC
(In reply to TraceyC from comment #1)
> Thanks for the bug report. Can you please re-test with Frameworks 6.22 when
> your system updates to that version? It included a bunch of clipboard fixes.

Will do!   I just verified that the problem exists on another machine - a laptop, but running the same OS and Plasma version.