Bug 439809

Summary: Add a way to save to clipboard and save to disk at the same time without losing save options
Product: [Applications] Spectacle Reporter: irchaika
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: wishlist CC: antonio.prcela, jonzn4suse, justin.zobel, kde, noahadvs, serg
Priority: NOR    
Version First Reported In: 21.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description irchaika 2021-07-13 18:19:28 UTC
SUMMARY
when using the -c flag to save to clipboard it's seemingly impossible to also save to disk unless we use the -o flag, but doing that we can't use our settings for saving (location, format, naming...).

STEPS TO REPRODUCE
1. Running spectacle with -c

OBSERVED RESULT
File is saved only to clipboard, not to disk

EXPECTED RESULT
To have some way to do both at once without having to specify the filepath.
Comment 1 Antonio Prcela 2021-11-01 17:23:22 UTC
For example:
"spectacle -a -b -c"
Saves active window to clipboard and to the default location with extension and naming set in options. No need for -o.
From "man spectacle""
"-c, --clipboard
  In background mode, copy screenshot to clipboard."

-c works only in background mode.
Comment 2 Justin Zobel 2022-11-11 06:58:18 UTC
Moving to wishlist instead of bug.
Comment 3 jonzn4SUSE 2023-06-05 08:29:12 UTC
How does one add to the wishlist?
I  wish that Spectacle didn't close when I hit the ESC key.
Comment 4 Justin Zobel 2023-06-05 23:49:26 UTC
Wishlist items are still bug reports but they have the Severity set to Wishlist.
Comment 5 Noah Davis 2024-01-05 23:34:43 UTC
This appears to be fixed, although I'm not certain the behavior is what users would expect in all situations.

If you do `spectacle -c -o ~/test.webp`, Spectacle will open in GUI mode and the image will be copied to the clipboard in the WebP format, but it will not be saved until you click Save or Save As. If you click Save, the image will be saved to `~/test.webp`.

If you do `spectacle -b -c -o ~/test.webp`, Spectacle will open in background mode, the image will be copied to the clipboard in the WebP format and the image will be saved to `~/test.webp` automatically.