Bug 447140

Summary: Does not automatically copy in clipboard on wayland under certain circumstances
Product: [Applications] Spectacle Reporter: d3coder <admin>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: normal CC: kde, meven29, nate
Priority: NOR Keywords: wayland-only
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 22.04
Sentry Crash Report:

Description d3coder 2021-12-17 18:08:03 UTC
SUMMARY
I configured spectacle to copy my screenshot without showing itself.
It works on X11, but does not work on Wayland.
It works really weird on Wayland compared to X11, sometimes it saves selected screenshot region between screenshots.

STEPS TO REPRODUCE
1. Make sure there is no spectacle process running
2. Press hotkey to make a screenshot
3. Make a screenshot

OBSERVED RESULT
Screenshot not copied in a clipboard

EXPECTED RESULT
Screenshot copied in a clipboard

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.15.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-12-17 19:01:58 UTC
This was supposed to be fixed in Bug 421974 and it's currently working for me.
Comment 2 d3coder 2021-12-17 19:06:13 UTC
Do you see spectacle window appear after you make a screenshot? It shouldn't appear after the screenshot.
Try to:
1. Run wayland
2. Make sure "copy to clipboard" is enabled in spectacle
3. Reboot or killall spectacle if you started it before or made a screenshot
4. Make a screenshot with a hotkey

What should happen:
1. Spectacle window should not appear
2. Screenshot must be in a clipboard
Comment 3 Méven Car 2021-12-18 14:29:42 UTC
(In reply to Nate Graham from comment #1)
> This was supposed to be fixed in Bug 421974 and it's currently working for
> me.

My bad this is properly fixed only for spectacle 22.06 with KF 5.89