Bug 466779 - Copying image file from desktop:/ IO worker does not result in the Klipper history item for it having a thumbnail
Summary: Copying image file from desktop:/ IO worker does not result in the Klipper hi...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-03 17:15 UTC by Nate Graham
Modified: 2023-09-03 15:09 UTC (History)
2 users (show)

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


Attachments
Clipboard thumb in X11 (18.86 KB, image/jpeg)
2023-03-03 17:34 UTC, Colin J Thomson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2023-03-03 17:15:23 UTC
Plasma 5.27.2 built from source on top of Fedora 5.27.

STEPS TO REPRODUCE
1. Have Klipper at its default settings
2. Pin Klipper popup open
3. Put an image on the desktop
4. Copy it

OBSERVED RESULT
Copied image is added to the Clipboard, but it is shown as a placeholder image of a mountain; there is no thumbnail of the contents

EXPECTED RESULT
Thumbnail of the image contents

ADDITIONAL INFORMATION
The issue only happens when copying files on the desktop (i.e. when Folder View is showing the desktop:/ IO worker). The issue does not happen when copying the file from Dolphin, or when opening the image file in Gwenview and copying with Ctrl+C
Comment 1 Nate Graham 2023-03-03 17:16:45 UTC
Forgot to mention this is on Wayland. Have not tested X11.
Comment 2 Colin J Thomson 2023-03-03 17:33:44 UTC
(In reply to Nate Graham from comment #1)
> Forgot to mention this is on Wayland. Have not tested X11.

Seeing the same in Wayland and I just tested on X11 and it sort of works, see attached.

Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
KDE apps 22.12.3
Comment 3 Colin J Thomson 2023-03-03 17:34:36 UTC
Created attachment 156964 [details]
Clipboard thumb in X11
Comment 4 Nate Graham 2023-03-03 17:49:57 UTC
Thanks, looks like you reproduced the issue on X11. That's what I see on Wayland too: a placeholder image instead of a thumbnail.
Comment 5 Colin J Thomson 2023-03-03 18:40:48 UTC
Actually on this box the image does not get pasted to the clipboard from the Desktop. There was no placeholder at all, the clipboard remains empty.
It was only when I tested on X11 the placeholder was shown.
Comment 6 Colin J Thomson 2023-03-03 20:07:01 UTC
(In reply to Colin J Thomson from comment #5)
> Actually on this box the image does not get pasted to the clipboard from the
> Desktop. There was no placeholder at all, the clipboard remains empty.
> It was only when I tested on X11 the placeholder was shown.

Actually I do see the placeholder in Wayland now (User Error) sorry :/