elementary / docs

Documentation for 3rd-party app development
https://docs.elementary.io
78 stars 31 forks source link

Session Management #176

Open danirabbit opened 2 years ago

danirabbit commented 2 years ago

Problem

It's handy for apps to be able to do things like inhibit the session from going to sleep as well as responding and ending tasks before the session goes to sleep

Proposal

Document the APIs related to interacting with the session state such as Gtk.Application.inhibit and responding to session state changes via LibPortal

Prior Art (Optional)

No response

danirabbit commented 2 years ago

Oh actually it looks like Gtk.Application.screensaver_active exists as well