| Summary: | Active job progress notifications inappropriately block screen locking | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Artur Rudenko <catcool419> |
| Component: | Notifications | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde, me, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.25.2 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 5.27 | |
| Sentry Crash Report: | |||
| Attachments: |
chrome blocking sleep and screen locking (but not screen dimming)
pygtk4 minimal inhibit example (chromium most likely uses gtk to do this) |
||
|
Description
Artur Rudenko
2022-07-02 12:59:29 UTC
Check whether Chrome actually posts an inhibition. I think Chrome blocks suspend during downloads, but that shouldn't block the screen locker. Created attachment 151978 [details]
chrome blocking sleep and screen locking (but not screen dimming)
(In reply to Kai Uwe Broulik from comment #1) > Check whether Chrome actually posts an inhibition. I think Chrome blocks > suspend during downloads, but that shouldn't block the screen locker. I added an attachment. Yes, it blocks sleep, but why would it also block screen locking? I also installed plasma integration extension in chromium if it matters. Created attachment 151980 [details]
pygtk4 minimal inhibit example (chromium most likely uses gtk to do this)
I also created minimal pygtk inhibit example and when I run it it says "Is currently blocking sleep and screen locking" however the flag that I set there is GTK_APPLICATION_INHIBIT_SUSPEND So the suspend inhibitor is also perceived as screen locking inhibitor, but gtk documentation says that GTK_APPLICATION_INHIBIT_IDLE should block screen locking and not GTK_APPLICATION_INHIBIT_SUSPEND (https://docs.gtk.org/gtk4/flags.ApplicationInhibitFlags.html) I didn't try inhibiting using qt or dbus though, but chromium most likely uses gtk to do this So the issue here is not that the notification itself blocks screen locking, but rather than Chrome does it; that notification is simply a visible side effect of the file download. There was a bug recently where an app requesting to block suspend would also cause screen locking to be blocked; this has been fixed in Plasma 5.27. |