Console, Wayland and X11
Install a desktop or shell independently of GoCDM. With no explicit binlist, GoCDM
looks for user X scripts, user desktop entries, system desktop entries, legacy X11
scripts and shells registered in /etc/shells.
A user desktop entry takes precedence over the system entry with the same filename and session kind. A hidden user override also hides the corresponding system entry. Different desktop entries can share a display label; their saved identities remain separate. Discovery order is repeatable, including equal labels. Missing optional sources are normal; an unreadable source is reported, and invalid desktop entries produce a diagnostic identifying the file to inspect.
Console shells
In direct getty mode, a selected bare registered shell runs as a login shell in the authenticated user’s home. Bash and zsh can read their normal login startup files. In post-login user mode, GoCDM avoids invoking a second login shell. A console command with explicit arguments runs directly rather than gaining login-shell behavior.
Wayland and Plasma
Sessions come from /usr/share/wayland-sessions and ~/.config/wayland-sessions.
GoCDM preserves the desktop entry’s command arguments and desktop metadata. Hidden
and NoDisplay entries are excluded. Plasma entries that already use
plasma-dbus-run-session-if-needed or dbus-run-session are not wrapped a second time.
Where available, the Plasma helper can provide a D-Bus session for unwrapped entries.
Your PAM/logind/elogind and desktop stack must supply a valid runtime directory and
D-Bus setup. GoCDM does not invent XDG_RUNTIME_DIR or a bus address. Check those
values inside the launched desktop before changing PAM policy. Graphical commands
do not source .profile, .bashrc or .zshrc automatically.
X11
Install the distribution’s startx/xinit tools and the selected X application or
desktop. Sessions are discovered under /usr/share/xsessions,
~/.local/share/xsessions, /etc/X11/Sessions, ~/.xinitrc and ~/.xsession.
Launching on another VT may require chvt. Legacy ConsoleKit is optional and follows
the configuration policy described in configuration.
startxlog defaults to /dev/null. A custom log must be writable by the intended
session user; avoid symlinks, nonregular files and paths belonging to other accounts.
In direct getty mode the authenticated account opens the log from its session
working directory. A new log has mode 0600. Test production deployments against
the release-readiness checks.
For every desktop, test launch, logout, repeated login, notices, session identity, runtime directory and D-Bus. Headless discovery tests alone do not verify these.