#pragma once #include #include namespace fws { struct DesktopProfile { std::string id; std::string name; std::vector packages; // pacman targets (packages or groups) std::vector sessionNames; // logind Desktop values to match std::vector sessionFiles; // installed .desktop stems, most wanted first }; const std::vector& supportedDesktops(); // Looks a profile up by id or name (case-insensitive), nullptr when unknown. const DesktopProfile* findDesktopProfile(const std::string& name); // True when every pacman target of the profile is installed. bool isDesktopInstalled(const DesktopProfile& 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. std::vector installArguments(const DesktopProfile& profile); } // namespace fws