xsession
Xsession is a startup script used by the X Window System to launch a user’s graphical session after the X server starts. It is typically invoked by a display manager (such as GDM, LightDM, or SDDM) or by the startx command when starting a session. The script acts as a framework for environment setup and for launching the actual window manager or desktop environment that the user will use.
Location and structure: The canonical system-level script is often called Xsession and is found as /usr/bin/Xsession
Behavior and customization: During startup, Xsession often sources a series of helper scripts in /etc/X11/Xsession.d to