A .xinitrc sample:
xsetbg -fullscreen /morphix/background.png & exec ["gnome-session"]
The command to start GNOME is gnome-session.
You can also use instead:
- exec ["xfwm"]
- exec startxfce4 (for ["xfce"])
- exec /usr/bin/["fluxbox"]
and so on.
Change
If you want to choose i.e. between gnome and xfce when you want to change from one to the other, then you can do (as normal user) :
["nano"] .xinitrc
and make it look like this (and then exit nano saving changes: Ctrl-x, y, Enter):
- #exec startxfce4 exec gnome-session
This will tell "["startx"]" to start gnome. When you want to start xfce, do "nano .xinitrc" again and make it look like this:
- exec startxfce4 #exec gnome-session