The greeter only starts the session its own selector points at, so an
installed environment with no open session could not be reached from
the tool. Starting one needs a one-shot autologin drop-in, a display
manager restart and a guaranteed cleanup, all as root: keep that in a
small pkexec helper so the CLI and the GTK window stay unprivileged.
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.
Offer a single window to install and switch between XFCE, GNOME, Plasma,
Hyprland and i3. Installation goes through pkexec and pacman, switching
uses logind sessions, so neither action requires a reboot.