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 in awesome ) exec awesome;; ob ) exec openbox-lxde-pi;; # No known session, try to run it as command *) exec $1;; esac
I 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/Xsession
and the file
/etc/X11/Xsession never shows any call to start any window manager.