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

Non-DBUS based methods on GNOME #64

Open
fohrloop opened this issue Oct 26, 2023 · 3 comments
Open

Non-DBUS based methods on GNOME #64

fohrloop opened this issue Oct 26, 2023 · 3 comments
Labels
Type: Feature New feature or request
Milestone

Comments

@fohrloop
Copy link
Owner

It would be nice to have non-DBus based on methods available on GNOME. This would make D-Bus (and the python package jeepney) an optional dependency on GNOME.

Task:

  • Search for non-DBus based keep.running and keep.presenting methods on GNOME
  • If there are any, implement those with the new API; using wakepy.core.Method
@fohrloop
Copy link
Owner Author

There are so many other tasks for the 0.8.0 release that I would not want to hold it because of this. This can be part of the next release, for example.

@fohrloop fohrloop removed this from the wakepy 0.8.0 milestone Jan 16, 2024
@fohrloop fohrloop added the Type: Feature New feature or request label Apr 29, 2024
@fohrloop
Copy link
Owner Author

fohrloop commented May 28, 2024

There is a command called gnome-session-inhibit. See, for example: https://manpages.ubuntu.com/manpages/bionic/man1/gnome-session-inhibit.1.html

Notes:

  • Someone has reported a bug on GNOME 46: https://bbs.archlinux.org/viewtopic.php?id=294232
  • Probably part of the gnome-session package (https://gitlab.gnome.org/GNOME/gnome-session)
  • This one does not require D-Bus communication (from the python process)
  • Should take care that if python process crashes, there should be no gnome-session-inhibit processes left, but those should always be taken down with the main process. If that's not possible, this is probably not a good method. Perhaps, could try calling gnome-session-inhibit sleep 1 ?

@fohrloop
Copy link
Owner Author

One alternative is to use the gtk_application_inhibit() (#404)

@fohrloop fohrloop added this to the 0.11.0 milestone Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant