Bug 437368 - Spectacle Takes Screenshot Without Being Prompted To Do So
Summary: Spectacle Takes Screenshot Without Being Prompted To Do So
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 21.04.0
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
: 442725 443345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-05-19 15:24 UTC by Dragon .
Modified: 2021-10-19 18:00 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dragon . 2021-05-19 15:24:56 UTC
SUMMARY

When you open spectacle, it immediately takes an unprompted screenshot, which is annoying because I have to manually go and delete said screenshot.

STEPS TO REPRODUCE
1. Configure a shortcut to "Launch Spectacle"
2. Press shortcut
3. View the unprompted screenshot in the folder

OBSERVED RESULT

Screenshot taken without permission

EXPECTED RESULT

Software opens without taking a random screenshot, preferably just opening the most recent screenshot you took

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2021-05-19 18:43:10 UTC
It doesn't auto-save the screenshot that it automatically takes on launch unless you turn on auto-save. I gather you've done that?
Comment 2 Dragon . 2021-05-19 19:50:52 UTC
(In reply to Nate Graham from comment #1)
> It doesn't auto-save the screenshot that it automatically takes on launch
> unless you turn on auto-save. I gather you've done that?

The issue is more that it takes an unprompted screenshot, I want my screenshots to auto save ofc
Comment 3 Nate Graham 2021-05-20 15:02:10 UTC
Got it.
Comment 4 Antonio Prcela 2021-05-23 21:19:57 UTC
This would mean a new option in the settings?

Like:
When launching Spectacle GUI:
  ( ) take screenshot immediately
  ( ) don't take a screenshot
Comment 5 Méven Car 2021-05-24 11:52:51 UTC
(In reply to karsondahlman from comment #2)
> (In reply to Nate Graham from comment #1)
> > It doesn't auto-save the screenshot that it automatically takes on launch
> > unless you turn on auto-save. I gather you've done that?
> 
> The issue is more that it takes an unprompted screenshot, I want my
> screenshots to auto save ofc

We have more shortcuts for this use case PrintScreen+SHIFT+Meta for rectangular to avoid those cases.

(In reply to Antonio Prcela from comment #4)
> This would mean a new option in the settings?
> 
> Like:
> When launching Spectacle GUI:
>   ( ) take screenshot immediately
>   ( ) don't take a screenshot

Or more simply in Gui mode don't save the first screenshot/the one not triggered by the user when autoSave was set.
Comment 6 Antonio Prcela 2021-05-24 13:51:32 UTC
(In reply to Méven Car from comment #5)
> (In reply to karsondahlman from comment #2)
> > (In reply to Nate Graham from comment #1)
> > > It doesn't auto-save the screenshot that it automatically takes on launch
> > > unless you turn on auto-save. I gather you've done that?
> > 
> > The issue is more that it takes an unprompted screenshot, I want my
> > screenshots to auto save ofc
> 
> We have more shortcuts for this use case PrintScreen+SHIFT+Meta for
> rectangular to avoid those cases.
> 
> (In reply to Antonio Prcela from comment #4)
> > This would mean a new option in the settings?
> > 
> > Like:
> > When launching Spectacle GUI:
> >   ( ) take screenshot immediately
> >   ( ) don't take a screenshot
> 
> Or more simply in Gui mode don't save the first screenshot/the one not
> triggered by the user when autoSave was set.

What if one expects that launching Spectacle with `PrtSc` also takes a screenshot?
Not taking in account if the Screenshot has to be saved or not, jsut the launch of Spectacle.
The only solution, atm, I can think of without adding something in the settings is to add another Shortcut function.
One for "Launch Spectacle" (as it is now and defaults to PrtSc) which would take a Screenshot of all active screens and the other one to "Launch Spectacle without taking a screenshot"
Comment 7 Dragon . 2021-05-24 14:13:18 UTC
Just to be clear- it takes a screenshot regardless of "auto save" being enabled or not
Comment 8 Nate Graham 2021-09-21 21:50:51 UTC
*** Bug 442725 has been marked as a duplicate of this bug. ***
Comment 9 opport 2021-10-05 12:34:49 UTC
*** Bug 443345 has been marked as a duplicate of this bug. ***
Comment 10 Méven Car 2021-10-19 17:45:48 UTC
Git commit 731f8b16c6b5b01c2c3f785eba7a7ea9f4b682ac by Méven Car, on behalf of Antonio Prcela.
Committed on 19/10/2021 at 17:45.
Pushed by meven into branch 'master'.

Option to launch Spectacle without taking a screenshot or using last used capture mode

Adds an option to set so one can launch spectacle with either taking a fullscreen screenshot, using last capture mode or not taking a screenshot on launch.

M  +8    -0    dbus/org.kde.Spectacle.xml
M  +9    -1    desktop/org.kde.spectacle.desktop.cmake
M  +2    -1    desktop/spectacle_newConfig.upd
M  +7    -1    doc/index.docbook
M  +7    -0    doc/man-spectacle.1.docbook
M  +5    -0    src/Gui/KSImageWidget.cpp
M  +1    -0    src/Gui/KSImageWidget.h
M  +15   -1    src/Gui/KSMainWindow.cpp
M  +1    -0    src/Gui/KSMainWindow.h
M  +29   -0    src/Gui/KSWidget.cpp
M  +4    -0    src/Gui/KSWidget.h
M  +47   -20   src/Gui/SettingsDialog/GeneralOptions.ui
M  +2    -1    src/Gui/SettingsDialog/GeneralOptionsPage.cpp
M  +9    -0    src/Gui/SettingsDialog/spectacle.kcfg
M  +11   -0    src/ShortcutActions.cpp
M  +1    -0    src/ShortcutActions.h
M  +53   -15   src/SpectacleCore.cpp
M  +3    -0    src/SpectacleCore.h
M  +5    -0    src/SpectacleDBusAdapter.cpp
M  +1    -0    src/SpectacleDBusAdapter.h

https://invent.kde.org/graphics/spectacle/commit/731f8b16c6b5b01c2c3f785eba7a7ea9f4b682ac