logind accepts loginctl activate and SwitchToGreeter before the graphics
stack moves the seat, and SDDM 0.21 answers SwitchToGreeter with a greeter
whose logins never start a session. Each request is now confirmed within a
timeout and the previous session is reactivated on failure, so no path can
leave a blank VT. When nothing answers, both front-ends offer to restart
display-manager.service through polkit, and only after that is the session
terminated.
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.
A missing binary used to be indistinguishable from a program exiting with
127, so callers treated a command that never ran as a started process. A
close-on-exec pipe now carries the errno back to the parent and the failure
reaches the caller as output.
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.
Activate the target graphical session instead of rebooting, so a KDE or
GNOME session stays alive while another one is used. Switching relies on
logind VT activation, which needs no root privileges and never restarts
the display manager.