Bug 465010 - Auto copy to clipboard does not work if rectangle is used
Summary: Auto copy to clipboard does not work if rectangle is used
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 22.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2023-01-29 21:28 UTC by grappastudiols@gmail.com
Modified: 2023-02-14 22:17 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Spectacle config and error message about clipboard not containing image (330.10 KB, image/jpeg)
2023-02-03 12:30 UTC, A. R. Kristiansen
Details
My spectaclerc (605 bytes, text/plain)
2023-02-03 12:31 UTC, A. R. Kristiansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grappastudiols@gmail.com 2023-01-29 21:28:44 UTC
SUMMARY
***
Auto copy to clipboard does not work if rectangle is used. All other screenshots are not affected - both window and whole display screenshots works fine.
***


STEPS TO REPRODUCE
1. Use rectangle

OBSERVED RESULT
Screenshot is saved on disk but not copied to clipboard.

EXPECTED RESULT
Screenshot is saved to clipboard

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6750 XT

ADDITIONAL INFORMATION
Comment 1 A. R. Kristiansen 2023-02-03 12:28:47 UTC
Can confirm I've been having this problem on Plasma Wayland 5.27 Beta (5.26.90). When I use Spectacle, I use it as a rectangle capture tool and copy directly to clipboard, because I always paste images where I want them immedaitely which is usually to instant messaging apps. I never save to file, so this is rather inconvenient.

Attaching my spectaclerc after this comment and a screenshot. My config is also visible in that screenshot. I've configured Spectacle to not take a screenshot automatically, not save file to folder, to copy image to clipboard and accept on click-and-release.

I tried:
1) Executing "spectacle -rbnci" in a terminal then taking a screenshot
2) Capturing a rectangular region via the shortcut as defined in Plasma Settings
3) Opening Spectacle's GUI and taking a new rectangular screenshot through that

None of these methods copies the image to the clipboard like I've told it to do.
Can confirm that all other capture methods DO copy to clipboard successfully.

Plasma Wayland 5.26.90
Frameworks 5.102.0
Qt 5.15.8
Linux 6.1.9
AMDGPU driver (Mesa 22.3.4) if that matters.
Comment 2 A. R. Kristiansen 2023-02-03 12:30:29 UTC
Created attachment 155915 [details]
Spectacle config and error message about clipboard not containing image
Comment 3 A. R. Kristiansen 2023-02-03 12:31:19 UTC
Created attachment 155916 [details]
My spectaclerc
Comment 4 Geraldo Simião 2023-02-05 14:01:25 UTC
Exactly the same behavior happening here. 

Operating System: Fedora Linux 37
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.9-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-3632QM CPU @ 2.20GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Manufacturer: Acer
Comment 5 Geraldo Simião 2023-02-05 14:07:07 UTC
But this bug doesn't happens when I'm on X11 (xorg) session.
Comment 6 lrdarknesss 2023-02-11 11:44:37 UTC
I can also confirm this bug on Manjaro Linux.
It's quite annoying, so I would be very happy if it will be fixed quickly, which shouldn't be too hard since it's working when you click the button.
Comment 7 A. R. Kristiansen 2023-02-14 17:42:32 UTC
Cannot reproduce in Plasma 5.27 (now works as expected), can anyone else confirm that this is fixed now?
Comment 8 Alberto García 2023-02-14 22:14:05 UTC
I can confirm that this seems to be fixed in Plasma 5.27