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.
.xinitrc
islxde
. "What is the exact command that happens when you run startx (and you have no .xinitrc)?" -> seeman startx
; it either falls back on a system widexinitrc
or it just starts the X server with nothing on top. – goldilocks Apr 28 '15 at 15:35xinitrc
and didn't get any insight as what is the window manager it is loading by default. I edited the question to show the content of it. – pedrosaurio Apr 29 '15 at 15:16startx
; if you are using a graphical login, that uses something else. – goldilocks Apr 29 '15 at 15:30