Here's a bit of doc how 's session is set and what it interacts with: honk.sigxcpu.org/projects/phos

/cc @x51@cybre.space

@agx @x51@cybre.space Are there concepts of active/inactive applications? if yes - how to switch ti "inactive" state without swithing to another app (eg switch to desktop)?

@ruff @x51@cybre.space how do *you* define an inactive application? If you mean one that is not using CPU time then not yet. It's not a shell thing though would just talk to the daemon that handles this (e.g. by freezing a cgroup).
So we'd need to come up with the deamon first (maybe fits into the systemd project) and then hook the UI to it.

@agx @x51@cybre.space I define it as the one which does not have display focus (user interaction), the one which executes in the background. On sailfish it is used to switch from normal/interactive to powersave/inactive mode. It is then up to developer how to make use of that inactive mode to extend battery life (considering user is not interacting with the app)

@ruff @x51@cybre.space that shpi;d't be hard to add but needs to happen in a DE agnostic way so we can hook it into e.g. GApplication.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml