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:
4 files changed
+205
-45
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user