Launches start from this window, so the leftover file that would log the account in at the next boot has to be visible here, while the launch that clears it is still one click away.
A launch stopped before its cleanup left the drop-in armed, so the next boot
skipped the password prompt without anyone noticing. Mark what the tool writes,
create a transient unit whose ExecStopPost removes it on stop, timeout and
shutdown, and clean up on SIGTERM/SIGINT/SIGHUP in the helper.
The CLI, the separate helper and the GUI duplicated entry points, so a
launch required two installed executables. pkexec now reuses the same
binary through --privileged-launch, and the window adopts the dark
landing-page look of the project site instead of the default GTK styling.
Building and then locating the right binary was the first step of every
manual test; the script keeps an incremental build tree and opens the
GUI, or the CLI with --cli.
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.
The old text promised that the greeter closes the current session, which is
no longer true for GDM and LightDM, and it did not explain why SDDM needs a
display manager restart or how the session entry is chosen at login.
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.