Bug 446582 - Option "Press screenshot key to: Take a new Screenshot" seams doesn't work
Summary: Option "Press screenshot key to: Take a new Screenshot" seams doesn't work
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-06 21:18 UTC by Piotr Mierzwinski
Modified: 2022-11-15 23:20 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2021-12-06 21:18:31 UTC
SUMMARY
I set option like in subject, pressed Apply, OK and switched to some other application (Kate), pressed PrintScreen key on keyboard of my laptop and happened nothing.
I'm not sure what purpose this option if I have configured global shortcuts making couple types of screenshots. I think this is misleading option, if I'm wrong please explain what does mean this option? 

STEPS TO REPRODUCE
1. set  "Press screenshot key to: Take a new Screenshot" 
2. switch to any other application 
3. press "PrintScreen" key on keyboard  
(Note that in my config. this shortcut just  launch Spectacle. I assumed that "Press screenshot key" means this key, so pressing this key happens nothing because Spectacle is running already)


OBSERVED RESULT
nothing happens

EXPECTED RESULT
should be done screenshot

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3


ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-12-07 03:45:50 UTC
Works for me.
Comment 2 Piotr Mierzwinski 2021-12-09 21:48:58 UTC
(In reply to Nate Graham from comment #1)
> Works for me.
For me doesn't. I made another tests and for me  it looks like messed. I mean various combination of settings gives unexpected results.

Preset.
Key PrintScreen is configured like "Launch Spectacle". And "screenshot key in option "When Spectacle is running"" this is PrintScreen.

Let see below 3 scenarios.

(not all fine)
Launch Spectacle by "Application launcher"
Notice that screenshot was made before
My first setting is as following:
1. Three options are set like:
"When launching Spectacle: Do not take a screenshot automatically"
"When Spectacle is running: Open a new Spectacle Window"
"Remember selected area: Until Spectacle is closed"
2. Apply, OK, close application
3. Press PrintScreen
Result: Spectacle started with last took screenshot. I expected nothing in left view (ERROR)
4. Press PrintScreen
Result: New instance of Spectacle was launching, so all is as expected  (OK)
5. Close application

(all fine)
Launch Spectacle by "Application launcher"
Still I have the same screenshot in buffer (I can see it in left view)
My second setting is as following:
1. Three options are set like:
"When launching Spectacle: Take full screen screenshot"
"When Spectacle is running: Open a new Spectacle Window"
"Remember selected area: Until Spectacle is closed"
2. Apply, OK, close application
3. Press PrintScreen
Result: Spectacle started with foll screen screenshot, so all is as expected  (OK)
4. Press PrintScreen
Result: New instance of Spectacle was launching, so all is as expected  (OK)
5. Close application

(not all fine)
Launch Spectacle by "Application launcher"
I have last screenshot in buffer (I can see it in left view), so full screen
My third setting is as following:
1. Three options are set like:
"When launching Spectacle: Do not take a screenshot automatically"
"When Spectacle is running: Take a new Screenshot"
"Remember selected area: Until Spectacle is closed"
2. Apply, OK, close application
3. Press PrintScreen
Result: Spectacle started with empty buffer (nothing in left view), so all is as expected
4. Press PrintScreen
Result: New instance of Spectacle was launching, with empty buffer (nothing in left view). Of course I expected to Spectacle taking screenshot. (ERROR)
5. Close application

Spectacle version: 22.03.70
Neon Unstable updated at 2021-12-06
Comment 3 Justin Zobel 2022-11-11 07:00:18 UTC
I've tested and this works for me, while spectacle is open, using the setting you described it starts a new screenshot.

Can you please test and confirm if this issue is still present for you?