Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay is not applied #560

Open
djegithub opened this issue Mar 9, 2023 · 25 comments
Open

Delay is not applied #560

djegithub opened this issue Mar 9, 2023 · 25 comments
Labels
bug Something isn't working

Comments

@djegithub
Copy link

Brief summary of issue

I switch from no delay to 4 seconds delay but the change is not applied

Steps to reproduce the issue

Launch the app with 0 Delay
Change it to 4 seconds
Click selection
=> the selection tool is applied immediately and the delay is ignored.

Error output

Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve:

Version: 0.99.2-4
OS: Ubuntu 22.04

@djegithub djegithub added the bug Something isn't working label Mar 9, 2023
@vadi2
Copy link
Contributor

vadi2 commented Mar 9, 2023

Are you taking a new screenshot or are you doing a repeat screenshot? If it's a repeat screenshot, it is re-run with the original parameters and thus the original delay.

@djegithub
Copy link
Author

djegithub commented Mar 9, 2023 via email

@DarthGandalf
Copy link
Member

DarthGandalf commented Mar 9, 2023 via email

@djegithub
Copy link
Author

djegithub commented Mar 9, 2023 via email

@djegithub
Copy link
Author

djegithub commented Mar 9, 2023 via email

@DarthGandalf
Copy link
Member

DarthGandalf commented Mar 9, 2023 via email

@djegithub
Copy link
Author

djegithub commented Mar 9, 2023 via email

@DarthGandalf
Copy link
Member

DarthGandalf commented Mar 9, 2023 via email

@djegithub
Copy link
Author

Attached to mail but filtered out...
shutterWindow
system

@DarthGandalf
Copy link
Member

So yes, this is another Wayland issue. You can switch to X11 to get the full functionality of Shutter: #187

On X11 Shutter takes the screenshot itself, but on Wayland we're currently limited to XDG portal which provides a very limited API. Depending on DE it may show some other (its own) UI where it may or may not provide ability to specify delay, but Shutter has no control over that.

That's why we already disable all buttons in toolbar except for one when running under Wayland. At least to reduce confusion, the Delay and Cursor buttons probably should be disabled as well. Until we find some other way to take screenshots on Wayland without such limitations.

@DarthGandalf
Copy link
Member

DarthGandalf commented Mar 9, 2023 via email

@hsandt
Copy link

hsandt commented Mar 10, 2023

Started happening to me as well since upgrading to Ubuntu 22.04. I'm on Unity desktop (which also happens to break most of the native gnome-screenshot, so Shutter is becoming more and more vital).

@Photon89
Copy link
Member

What is echo $XDG_SESSION_TYPE reporting?

@hsandt
Copy link

hsandt commented Mar 10, 2023

x11

@Photon89
Copy link
Member

Photon89 commented Mar 10, 2023

Could you please launch Shutter from command line, do the delay change, then the screenshot and then post the output from command line?

@hsandt
Copy link

hsandt commented Mar 10, 2023

So, it looks like I already had a Shutter instance running:

INFO: There is already another instance of Shutter running!

I shut it down by clicking on the tray icon > Quit and the bug disappeared.

Then I reopened two instances, but the bug didn't reappear.

It's possible that having two instances running confuses the preferences, but since I couldn't repro, I'm not sure now.

@Photon89
Copy link
Member

Ok, just tingle around a bit more and see if you can reproduce it systematically in some way!

@djegithub
Copy link
Author

I come back with my info.
The wheel starts by default with "Ubuntu" choice. Other possibilities are GNOME, GNOME on Wayland and Ubuntu on Wayland.

When I run the shel command, I also get X11.

@Photon89
Copy link
Member

Just to make sure: The capture modes "Selection", "Window" etc are disabled as is shown on your first screenshot although you are running X11?

@djegithub
Copy link
Author

I had used shutter to test deeper and reached that situation.
By default, all buttons are enabled.
There is something really strange... Today, verything works fine. I did not upgrade shutter (still latest of the ubuntu store, i.e. 0.99.2). The only difference is that I'l running my PC from home instead of work. Could it make a difference?
I had noticed once in the past the the delay had been taken into account after an application or OS restart but today ot clearly processes everything fine.
I would say there must be something wrong as I tried to make it work more than 15 minutes and the issue was present when I created it and we did the first investigation but today, no issue...

@DarthGandalf
Copy link
Member

DarthGandalf commented Mar 13, 2023 via email

@djegithub
Copy link
Author

I tried again from the office where it works as it should.
I'm sorry, I'm sure I could not get rid of the delay in "Selection" once at work but now it works fine from home and office.
I fear I can't reproduce it...

@wheelerlaw
Copy link

wheelerlaw commented Apr 17, 2023

Depending on DE it may show some other (its own) UI where it may or may not provide ability to specify delay, but Shutter has no control over that.

Actually Shutter does have control over this. Shutter could respect the delay setting when run under Wayland by just delaying until it makes the call to the XDG portal API. It seems that this is how ksnip handles it.

@DarthGandalf
Copy link
Member

No. XDG portal API is free to show an arbitrary window which asks user how to do the screenshot. Delaying before that window is shown will achieve nothing. If some particular implementation of the portal shows no such prompt, and just immediately does the screenshot of the whole desktop, then delay on Shutter side would work, but we can't rely on any particular implementation, or can't even know which implementation will be called by the portal API.

@ventoux84
Copy link

ventoux84 commented Sep 14, 2023

On my system, "Delay is not applied". I changed from 4 to 15 and 4 is always applied.
This only occurs with menu and tooltip. Window and full desktop work fine.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.3-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6500T CPU @ 2.50GHz
Memory: 15.5 Gio of RAM
Graphics Processor: Mesa Intel® HD Graphics 530
Manufacturer: HP
Product Name: HP EliteDesk 800 G3 DM 35W

It's the same thing, just after boot or latter after killing and launching a new instance of Shutter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants