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)

@agx @x51@cybre.space And this is in addition to system-inactive mode (which is when display is locked or off - neither application is active and even services may try to suspend activity to the bare minimum only to poll the states and keep notifications flying

@agx @x51@cybre.space I would expect it rather opposite :) the screensaver (system-active) to be on a well-known dbus path and top-of-the-stack (app-active) to be toolkit-specific.

@agx @x51@cybre.space The reason being - system-activeness will likely be used by system services (non-toolkit apps) and top-of-the-stack while is a shell concept may still be wrapped into toolkit.

@ruff @x51@cybre.space did you look at the code? It is a well known DBus path abstacted by the toolkit (here GTK).

@agx @x51@cybre.space I did, but in here [1] it's just a static boolean property, not sure what is supposed to track it.
1 - gitlab.gnome.org/GNOME/gtk/-/b

@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