feat(session): read session state and greeter entries from logind

Switching needs to know whether a session owns the seat, is closing, or is
the greeter, and which session file the greeter will list for a desktop.
The catalog now keeps the logind State, exposes targeted lookups, and prefers
the active session so a closing one is never activated. Session ids are
compared numerically without std::stoi.
This commit is contained in:
BlackAngelTV committed 2026-11-04 15:42:22 +01:00
1 parent 265d0f4648
commit f7789cd639
4 files changed
+205 -45

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ const std::vector<DesktopProfile>& supportedDesktops();
// True when every pacman target of the profile is installed.
bool isDesktopInstalled(const DesktopProfile& profile);
// Finds an active logind session for the profile.
// Finds a logind session for the profile, preferring the one on the seat.
bool findActiveSession(const DesktopProfile& profile, std::string& sessionId);
// pkexec + pacman command used to install the profile.