Bug 498666 - With "Save clipboard across desktop sessions" disabled, images are no longer shown in the clipboard widget and cannot be re-selected for pasting
Summary: With "Save clipboard across desktop sessions" disabled, images are no longer ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 6.2.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 498665 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-01-14 19:37 UTC by fililip
Modified: 2025-02-11 21:37 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fililip 2025-01-14 19:37:52 UTC
SUMMARY
Images are not shown in the clipboard widget anymore and they cannot be re-used for pasting after copying something else. Additionally, QR code generation fails when requested on them, unsure if that's meant to work, I had not tried it before I updated to 6.2.90.

STEPS TO REPRODUCE
1. Copy an image to clipboard

OBSERVED RESULT
The resulting image entry is empty and cannot be re-used

EXPECTED RESULT
The image entry contains the copied image and allows re-using it later

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.10.0
Qt Version: 6.9.0
Kernel Version: 6.12.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Comment 1 fililip 2025-01-14 20:07:48 UTC
Update: this is broken only if I disable preserving clipboard history across sessions.
Comment 2 Nate Graham 2025-01-14 22:19:05 UTC
> Update: this is broken only if I disable preserving clipboard history across sessions.
Can you clarify exactly how you did that?

And can you also be specific about how you copy an image to make it fail to appear in the pop-up?
Comment 3 Nate Graham 2025-01-14 22:19:41 UTC
*** Bug 498665 has been marked as a duplicate of this bug. ***
Comment 4 fililip 2025-01-14 23:22:25 UTC
> Can you clarify exactly how you did that?
There's an option called 'Save history across desktop sessions.' Only with it enabled does the clipboard work as expected on 6.2.90. Note that in order for it to take effect plasmashell needs to be restarted.

> And can you also be specific about how you copy an image to make it fail to appear in the pop-up?
Either in a browser (with 'copy image'), nomacs ('copy buffer') or Spectacle after taking a screenshot.
Comment 5 Nate Graham 2025-01-15 18:31:02 UTC
Thanks, TIL. I totally failed to ever notice that setting. Did you actually restart the system after disabling the setting, or is it sufficient to simply disable the setting and then copy an image?
Comment 6 fililip 2025-01-15 20:24:46 UTC
Disable the setting, restart plasmashell (I did it with `pkill plasmashell` and `plasmashell` in the Alt+F2 menu) and then copy an image.
Comment 7 Nate Graham 2025-01-16 17:34:54 UTC
Can confirm, very strange. Of note: when I re-enable saving history across sessions and restart plasmashell, the copied image appears in the history as though it was secretly there all along.
Comment 8 Marco Martin 2025-01-20 15:20:07 UTC
on master copying images with that option disabled seems to work for me.

tough a possible relevant thing is that i get on terminal the following warning when doing so:


kf.kio.workers.file:  Couldn't rename  "/home/diau/.local/share/klipper/data/d561c1b7e569a0e800a361538fd0efb6dffcee4b/2f00a3fb06a1b97e04d90783128502bf7fe1a83f.part"  to  "/home/diau/.local/share/klipper/data/d561c1b7e569a0e800a361538fd0efb6dffcee4b/2f00a3fb06a1b97e04d90783128502bf7fe1a83f"
Comment 9 fililip 2025-01-20 15:30:24 UTC
Would it be possible to make it so that nothing gets saved to disk with that option disabled (by storing the sqlite db in memory), if nothing is to be preserved after a shell restart anyway?
Comment 10 fililip 2025-01-21 20:06:11 UTC
I compiled plasma-workspace from master and the clipboard works as intended again.

However, I still don't know what fixes it or if it's gonna work on 6.3.
Comment 11 fililip 2025-02-11 21:37:50 UTC
Fixed in 6.3.