xinit
xinit is a program in the X Window System used to start an X server and a user program, typically a window manager or desktop environment, on Unix-like systems. It is a lightweight, flexible launcher that allows users to define the session start-up through a script, most often a file named ~/.xinitrc. The X server is launched first, followed by the client program specified by the initialization script. When the client (the session) exits, the X server typically shuts down as well.
Configuration and session scripts
The standard system-wide initialization script is located at /etc/X11/xinit/xinitrc, and sites may extend behavior with additional
In practice, xinit is commonly invoked indirectly via the startx wrapper, which supplies sensible defaults and