shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
503 stars 34 forks source link

Allow canceling screenshot during delay #565

Open hsandt opened 1 year ago

hsandt commented 1 year ago

Description of requested feature:

Add a button in main window and/or tray icon menu to cancel incoming screenshot during the delay

Reasons for adding feature:

Sometimes I set a pretty long delay, but want to cancel the screenshot and I can't until the long delay is over. Even when running from the terminal, Ctrl+C / Ctrl+D is unable to interrupt the action. I can reopen the main window from the tray menu, but I see no button to cancel the screenshot anyway.

Extra information, such as Shutter version, operating system and ideas for how to implement:

Shutter: v0.99.2 OS: Ubuntu 22.04 with Unity desktop

vadi2 commented 1 year ago

How long is the delay that you set it for?

hsandt commented 1 year ago

In real-world usage, the longest was probably 5s, to give me enough time to test a laggy application. Not too long, but a little annoying when you realize you forgot to setup one thing right after starting the timer and want to restart.

When debugging https://github.com/shutter-project/shutter/issues/560 and https://github.com/shutter-project/shutter/issues/564, I tried a various range of values including 10s to make it obvious that the delay was not applied. But when it was, then I really needed to stop the timer to quickly do another test.