Expand description
SessionBackend over logind (loginctl) and the kernel’s power-supply class.
Structs§
Functions§
- gamemode_
clients 🔒 ClientCountof Feral GameMode on the user’s bus, read through the user manager (--machine=<uid>@.host --user); 0 if GameMode is not there.- parse_
list - Session ids from
loginctl list-sessions --no-legend(first column). - parse_
session - Parse
loginctl show-sessionkey=value output into a session. - read_
power 🔒 - show_
session_ argv - One
--propertyper property: systemd 260’s loginctl prints nothing (and exits 0) for a comma-separated list, so every session went unseen.