Bug 360925 - Default Dbus shortcut prevents multiple instances of Spectacle when continuing to press PrntScr
Summary: Default Dbus shortcut prevents multiple instances of Spectacle when continuin...
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-23 22:56 UTC by Mike H
Modified: 2022-06-14 22:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike H 2016-03-23 22:56:49 UTC
I've used ksnapshot for years with a simple custom shortcut: prntscrn = command "ksnapshot" 

I modified this now to run Spectacle and it runs as expected: multiple concurrent sessions of a screen capture program running, as I modify contents on my screen and want to take multiple shots in rapid succession to edit later. 

Click window - prntscrn; click option in window - prntscrn again; keep doing step by step workflow in my program - prntscrn each time, leaving me with sometimes >20 or more screenshot windows open.

This is how I think it should work by default; the org.kde.Spectacle action is preventing this, and I consider this to be a bug or something that is definitely explained to people who expect their screenshot program to hold numerous copies of itself in memory waiting for the user to process the pic(s) further. 


Reproducible: Always

Steps to Reproduce:
1. PrntScrn
2. PrntScrn Again
3. PrntScrn 20 more times because you expect 20 more windows to popup out of frustration

Actual Results:  
One single window opens; if this one single window is no longer foreground, it does not even pop itself back up into foreground. It just sits there, behind the active window.



Expected Results:  
Default action of keeping multiple screenshot windows in the background, and automatically starting a new one if the button is repeatedly pressed.
Comment 1 Boudhayan Gupta 2016-03-24 09:16:50 UTC
This is expected behaviour now. This was done to prevent people from accidentally pressing the PrintScreen key for too long and ending up DoS-ing their own computer by opening up too many Spectacle windows.

If you want a fix just for your own computer, change the shortcut (in System Settings) to a simple "spectacle" instead of the DBus command.

The issue of the window not coming back to foreground after a new shot has been taken is a real bug and I will fix that in time for 16.04.
Comment 2 Ganton 2022-06-14 22:02:12 UTC
> people who expect their screenshot program to hold numerous copies of itself in memory waiting for 
> the user to process the pic(s) further. 

For those who find that page searching (for example) "Spectacle multiple instances":
A standard method for Spectacle 21.12.3 is:  Click "Configure...", "General", and next to "When Spectacle is Running" / "Press screenshot key to:" select "Open a new Spectacle window".