Bug 498150 - Rectangluar Region Mode in Spectacle fails to simultaneously Save and Copy screenshots
Summary: Rectangluar Region Mode in Spectacle fails to simultaneously Save and Copy sc...
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 24.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-02 11:42 UTC by Moritz
Modified: 2025-04-18 14:40 UTC (History)
3 users (show)

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


Attachments
rectangular region toolbar (693.77 KB, image/png)
2025-01-02 21:16 UTC, Moritz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz 2025-01-02 11:42:00 UTC
SUMMARY
When using Spectacle's Rectangluar Region capture mode, the configured setting to simultaneously save and copy screenshots is not honored. The screenshot is either saved OR copied, depending on the button/hotkey used, instead of performing both actions as configured.

STEPS TO REPRODUCE
1. In Spectacle Settings > General, enable "After taking a screenshot:" with both options:
     ☑️ Save file to default folder
     ☑️ Copy image to clipboard
2. Initiate a screenshot using Rectangluar Region option (via Spectacle window or hotkey)
3. Draw the desired rectangluar region
4. Finish capturing using either:
    "Save" GUI button or Ctrl+S
    "Copy" GUI button or Ctrl+C

OBSERVED RESULT
The action is mutually exclusive:
- Using Save/Ctrl+S: Screenshot is only saved to the configured folder
- Using Copy/Ctrl+C: Screenshot is only copied to clipboard


EXPECTED RESULT
Regardless of whether Save/Ctrl+S or Copy/Ctrl+C is used, the screenshot should both:
- Save to the configured folder AND
- Copy to the clipboard


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
This issue only occurs with Rectangluar Region capture mode. Full Screen and Active Window capture modes work as expected, performing both save and copy operations simultaneously.

___
I also think this is a regression, since I am always taking my screenshots like this:
1) Super + Shift + S = open Rectangluar Region capture
2) Draw capture area
3) Press Ctrl+C to finish

I recently checked my screenshots folder and noticed that the last screenshot saved was over a month old: since then my workflow only copied the captured screenshots to my clipboard and did not save them to the folder at the same time.
Comment 1 Nate Graham 2025-01-02 20:23:11 UTC
Can reproduce when finishing by clicking the "Save" or "Copy" buttons on the rectangular region toolbar. Cannot reproduce when finishing by hitting the return key and clicking the "Save" or "Copy" buttons on the main window toolbar.
Comment 2 Moritz 2025-01-02 21:16:01 UTC
(In reply to Nate Graham from comment #1)
> Can reproduce when finishing by clicking the "Save" or "Copy" buttons on the
> rectangular region toolbar. Cannot reproduce when finishing by hitting the
> return key and clicking the "Save" or "Copy" buttons on the main window
> toolbar.

I activated the option "Quit after manual Save or Copy" so I never see the main Spectacle window.

Nice that the issue is reproducible! When I am on this view (see attachment), I just press Ctrl+C.

All my testing was done on/with the rectangular region toolbar.
Comment 3 Moritz 2025-01-02 21:16:53 UTC
Created attachment 177060 [details]
rectangular region toolbar
Comment 4 angry.cake7278 2025-04-18 14:30:08 UTC
pressing Enter after making region selection saves to file and copies properly for me, so I'd assume ctrl+c and ctrl+s are meant specifically for exclusive save/copy and Enter is for whatever the default is
Comment 5 angry.cake7278 2025-04-18 14:40:52 UTC
(In reply to angry.cake7278 from comment #4)
> pressing Enter after making region selection saves to file and copies
> properly for me, so I'd assume ctrl+c and ctrl+s are meant specifically for
> exclusive save/copy and Enter is for whatever the default is

Personally this doesn't seem like a bug to me, just awkward UX. The buttons/shortcuts do what they say.
It might be a good idea to make a feature request for a button to "Save and Copy" on the rectangular selection menu instead

Is there anyone for whom this doesn't work when confirming with Enter or double click?
If not, this should probably be closed as not a bug.