Bug 490955

Summary: screenshot not copied to clipboard when "save to folder" is selected
Product: [Applications] Spectacle Reporter: Henning <boredsquirrel>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, nate
Priority: NOR    
Version: 24.05.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: spectacle config file

Description Henning 2024-07-28 22:55:16 UTC
In the spectacle settings one can configure if the screenshot should be copied to the clipboard or saved to a folder, automatically.

BUT there is ALSO a button in the "edit rectangle selection" view to copy the screenshot to the clipboard, or save, or save to...

This "copy to clipboard" button does not work when saving the screenshot to a location.

Using the context menu in the "clipboard taken" notification to "copy" works meanwhile, which is a workaround.

The bug is that the button "copy" does not work, when the screenshot is globally configured to be saved to a directory. But it should always follow the buttons pressed in the "edit rectangle selection" view, and only when pressing "Enter" follow the global settings.

spectacle-24.05.2-1.fc40.x86_64
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.10-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Comment 1 Henning 2024-07-28 22:58:07 UTC
no, actually wrong. The global setting is "copy to clipboard" while a custom save location is set.

The system does not have "wl-copy" installed because of minimalism reasons...

This may be an issue? But shouldnt be.

When launching spectacle from terminal this seems to not happen. This may only happen when launching the "edit rectangle selection" view immediately (with a shortcut), as I prefer that instead of using the "main screen" where you can choose the actions.
Comment 2 Nate Graham 2024-07-30 21:20:19 UTC
Can you rephrase in the form of concrete steps to reproduce? The text is rather stream-of-consciousness right now, which makes it hard to figure out how to make the issue happen.
Comment 3 Henning 2024-07-30 22:10:19 UTC
1. In systemsettings, set the keyboard shortcut to "Print" as "take rectangle selection"
2. press print, launches spectacle in that mode
3. Take a screenshot, press the "copy" button in that view

It does not copy, while it should do

1. Launch spectacle normally
2. record rectangle screenshot
3. Press "copy" button

Weirdly it seems to do copy to clipboard

The changes are default here.
Comment 4 Nate Graham 2024-07-31 18:02:03 UTC
In step 3, you're still on the rectangular region overlay view, right? So you're pressing "copy" on the floating toolbar, right?
Comment 5 Henning 2024-07-31 18:07:26 UTC
yes, still the "take rectangle screenshot" view. Pressing the button closes it.
Comment 6 Nate Graham 2024-07-31 20:21:11 UTC
Ok. And can you attach your ~/.config/spectaclerc file so I can see what non-default settings you're using?
Comment 7 Henning 2024-08-01 18:05:39 UTC
Created attachment 172190 [details]
spectacle config file
Comment 8 Henning 2024-08-01 18:09:26 UTC
here you go!

I didnt find a lot of custom stuff there

JPG by default

[Annotations]
annotationToolType=9

[General]
clipboardGroup=PostScreenshotCopyImage
launchAction=DoNotTakeScreenshot
rememberSelectionRect=Always
Comment 9 Nate Graham 2024-08-05 21:45:28 UTC
Aha, I know what's causing this: the default file format being JPEG.

*** This bug has been marked as a duplicate of bug 485096 ***