Bug 466947

Summary: Incorrect File being copied to clipboard
Product: [Plasma] plasmashell Reporter: arcane2.0
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: grave    
Priority: NOR    
Version First Reported In: 5.26.4   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description arcane2.0 2023-03-06 15:25:44 UTC
SUMMARY
Clipboard is copying the wrong files. For instance copying a pdf might add a previously copied jpg file to the clipboard.
The wrong file appears in the clipboard manager. Text continues to work as expected.

STEPS TO REPRODUCE
1. Copy a *file* via UI e.g. pdf jpg etc. 
2. Paste it elsewhere e.g. desktop
3. Copy a different Item - Clipboard manager shows previous file
4. Paste it else where - Previous file pasted
5. Clear clipboard manager
6. Copy a new file - Initial File added to Clipboard (same as 3)

OBSERVED RESULT
Copies an item not selected to the clipboard

EXPECTED RESULT
copy the selected item to the clipboard

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 36 - X11 Session
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
First copy paste of the session works as expected if 'remember history' is turned off.
`cp` works as expected.
`xclip` works as expected.
Drag-drop works sometimes but I can't pin point the logic behind whether it will work or not.
Clearing the clipboard and copying 
clip - paste moves the wrong file
A maximum of two files are added to the clipboard.
Restarting does not fix anything.
Comment 1 Bug Janitor Service 2023-03-06 15:33:55 UTC
Thank you for the bug report!

Please note that Plasma 5.26.4 will not be supported for much longer by KDE; supported versions are 5.27, and 5.27 or newer.

Please upgrade to the latest version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one.
Comment 2 arcane2.0 2023-03-06 15:43:20 UTC
Upgrading to 5.27.1 Fixed this.