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

[Request/Bug] Don't drop inhibitors/delays from systemd-inhibit on the system bus #2

Open
joebonrichie opened this issue Jan 26, 2024 · 0 comments

Comments

@joebonrichie
Copy link

budgie-session version

0.9.1

Use-cases

systemd provides an inhibitors/delays on the system bus that can prevent the pc from shutting down/going to sleep etc.

Since 2012 gnome-session purposely doesn't respect these inhibitors and only listens exclusively to inhibitors from gnome-session-inhibit on the session bus.

This is annoying to applications which use the general purpose inhibit API to set inhibitors which are not then respected.

There may be additional nastiness to untangle here as gnome sets it's own inhibitors on the system bus that then block shutdown/sleep when systemd inhibitors are no longer dropped.

$ systemd-inhibit --list
...
GNOME Shell    1000 ninya 1471 gnome-shell    sleep                                                    GNOME needs to lock the screen            delay
ninya          1000 ninya 1700 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses                 block
ninya          1000 ninya 1700 gsd-media-keys sleep                                                    GNOME handling keypresses                 delay
ninya          1000 ninya 1704 gsd-power      sleep                                                    GNOME needs to lock the screen            delay

Proposal

Respect systemd inhibitors on the system bus in addition to those from the gnome-session-inhibit API.

References

https://www.freedesktop.org/wiki/Software/systemd/inhibit/

https://gitlab.gnome.org/GNOME/gnome-session/-/issues/110

https://github.com/BuddiesOfBudgie/budgie-session/blob/v0.9.1/gnome-session/gsm-systemd.c#L79

https://github.com/BuddiesOfBudgie/budgie-session/blob/v0.9.1/gnome-session/gsm-systemd.c#L89

https://gitlab.gnome.org/GNOME/gnome-session/-/commit/c1d0790459b8d277fbde135b1653df84b79d5f22

https://manpages.org/gnome-session-inhibit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant