I switched to Arch for a while and got very used to booting to the terminal, logging in, and running "startx" to start my WM. I, of course, could change which WM or DE to run in the ~/.xinitrc file.
Now I am back to Ubuntu and am wondering how using a display manager handles this. When the display manager begins, it runs X. Then the user is given options of which WM or DE they wish to run.
So when the display manager starts, does it simply run "startx"? After that, what configuration in what file gets changed when the user selects the WM/DE they want to run? Basically I just want to know the steps that take place from the display manager starting to the WM/DE beginning.
I know this isn't Ubuntu-specific, but since I am back on Ubuntu, I figured I could just ask here.