Bug 429875

Summary: Gwenview loses picture in the clipboard on exit
Product: [Applications] gwenview Reporter: Bernie Innocenti <bernie>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: abcdjdj, indecisiveautomator
Priority: NOR    
Version First Reported In: 20.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bernie Innocenti 2020-12-01 04:46:28 UTC
SUMMARY

When you exit Gwenview, any picture stored in the clipboard is lost.

This probably happens because the X11 clipboard is "lazy": large objects are only copied and converted when requested by another app. However, on exit the data should be copied into the clipboard.

STEPS TO REPRODUCE
1. open a picture
2. click Edit -> Copy (*)
3. exit gwenview
4. try to paste the picture somewhere (I used Telegram Desktop)

OBSERVED RESULT
The picture's filename is pasted

EXPECTED RESULT
The actual image should be pasted

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION

(*) There's no "Copy" function in the context menu, which is inconsistent with other software.
Comment 1 Christoph Feck 2020-12-01 13:03:15 UTC
Did you configure Klipper to keep images?
Comment 2 Bernie Innocenti 2020-12-01 13:52:52 UTC
No, I have "Ignore Images" checked.
Comment 3 Christoph Feck 2020-12-01 15:56:58 UTC
And not ignoring images makes klipper remember images. Can you confirm?
Comment 4 Bernie Innocenti 2020-12-01 17:02:58 UTC
Actually, it's weirder than that:

 * Telegram Desktop
   - Gwenview open: pastes image
   - Gewnview closed: pastes image
 * Signal Desktop (flatpak)
   - Gwenview open: pastes both the image and its url!
   - Gwenview closed: pastes only the url
 * Chrome (Mastodon's new toot textbox)
   - Gwenview open: uploads image
   - Gwenview closed: pastes image's file:/// url
 * Firefox (Mastodon's new toot textbox)
   - Gwenview open: uploads image
   - Gwenview closed: pastes image's file:/// url
 * Krita
   - Gwenview open: pastes image
   - Gwenview closed: pastes nothing

Contrary to what I wrote before, toggling "Ignore Images" in Klipper has no effect.
Somehow, Telegram Desktop manages to do the right thing
Comment 5 Christoph Feck 2020-12-01 20:45:09 UTC
Thanks for the update; changing status for investigation.
Comment 6 Madhav Kanbur 2021-01-31 06:26:40 UTC
This bug is still present. It can be reproduced on both - X11 and Wayland. Furthermore, it isn't restricted to Gwenview or even Plasma for that matter. I experienced the same behavior even on Gnome/EOG. OP's suspicions are most probably true.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 7 indecisiveautomator 2022-05-20 03:05:11 UTC
Also affecting me on Plasma 5.24.90
Comment 8 A Linux User 2025-09-04 12:18:42 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)?