I am trying to configure my .xinitrc to be able to choose different window managers before starting X but I cannot reproduce the same environment as when I just run startx without a .xinitrc file in my home dir.case $session inawesome           ) exec awesome;;ob           ) exec openbox-lxde-pi;;# No known session, try to run it as command*) exec $1;;esacI am able to run  either of my options on the file. The problem is that when I run openbox I don't enter to the default X session with all the menus and background processes running. What is the exact command that happens when you run startx (and you have no .xinitrc)?Is there a conf file that I need to specify to open box so I get the default session?EDIT: I have checked the system wide file that startx runs in the case of an absent .xinitrc at home. These are it's contents:#!/bin/sh# /etc/X11/xinit/xinitrc## global xinitrc file, used by all X sessions started by xinit (startx)# invoke global X session script. /etc/X11/Xsessionand the file /etc/X11/Xsession never shows any call to start any window manager.
What is the exact command to start the openbox-lxde default session in raspbian?
xorg;raspbian;openbox;startx;xinit
Ok after fiddling around the system I found that startlxde-pi exists so and it is actually what launches the default raspbian session (with openbox). Running xinit startlxde-pi does the job.Now I need to investigate how is that being called by startx when .xinitrc is missing.