Bug 467513 - Spectacle Does Not Copy Image to Clipboard When Clicking 'Copy to Clipboard' After Screenshot Annotation
Summary: Spectacle Does Not Copy Image to Clipboard When Clicking 'Copy to Clipboard' ...
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 22.12.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-18 06:35 UTC by John
Modified: 2023-04-04 20:29 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John 2023-03-18 06:35:58 UTC
SUMMARY
***
Like the title states, when I take a Spectacle screenshot (via shortcut keys, have it set to copy on capture), and then click Annotation to edit the screenshot, whenever I click Annotation Done, and click Copy to Clipboard, Spectacle does not copy the image to Clipboard unless there is something existing already in the Clipboard history. If the Clipboard is empty (which I empty it every so often so it doesn't get cluttered up), and the existing copy of the screenshot (before I annotated) is in there, when I click to copy the annotated version of the screenshot, it clears the Clipboard, and doesn't copy the annotated screenshot to the Clipboard. I would think this would be a serious issue since it clears the clipboard without the clipboard being explicitly asked to be cleared.

I can try to get a screen recording of this happening soon to help.
***


STEPS TO REPRODUCE
1. Take rectangular region screenshot via Spectacle via shortcut keys (Super + Shift + S)
2. Select Annotate, and make edits (usually bordered empty box is what I add), click Annotation Done
3. Click Copy to Clipboard
4. Check Clipboard to see empty Clipboard, attempt to paste annotated image into application (tested on several applications, such as Element, Telegram, LibreWriter, OpenOffice)

OBSERVED RESULT
Annotated screenshot is not copied to clipboard when Copy to Clipboard button is clicked in Spectacle, instead clears the clipboard

EXPECTED RESULT
Annotated image is copied to clipboard, and able to successfully be pasted in supported applications.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Fedora 37 KDE Plasma on Wayland
(available in About System)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Kernel Version: 6.1.18-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-11370H @ 3.30GHz
System Version: 1.0
Comment 1 John 2023-03-18 06:37:48 UTC
The file was too big to attach the screen recording, so I have uploaded it to my Google Drive, and am giving the link to the video here. 

https://drive.google.com/file/d/1pCJmysx1FFsEozxUeslDKQjPQHbSDPu7/view?usp=sharing
Comment 2 Ben Bonacci 2023-03-18 11:16:11 UTC
I can successfully reproduce your issue on Spectacle version 22.12.3. Clicking copy to clipboard again after it was cleared also produces what looks to be a broken image entry. I also noticed that copying any image to the clipboard at all (automatic or manual) results in a broken image. The issue was also reproducible on a blank installation.
I suspect there was a change made recently that unintentionally broke this feature.
Comment 3 Nate Graham 2023-04-04 20:29:11 UTC
I can reproduce in 22.12 too, but it's already fixed in the upcoming 23.04 release.