On 2010-08-19 01:30, Philipp Thomas wrote:
On Tue, 17 Aug 2010 16:29:00 -0400, dwgallien <dwgallien@gmail.com> wrote:
This only applies if you have a graphical login, which you don't have when using startx.
And /etc/sysconfig/windowmanager, value for DEFAULT-WM controls which DE is the default.
I tried first, and I got kde4. Then I edited that file, wrote DEFAULT_WM="gnome" tried again, and again I got kde4.
But the thing he really wants is customising ~/.xinitrc. If this isn't present, do
cp /etc/skel/.xinitrc.template ~/.xinitrc
Ahhh... before I did this, "startx" simply failed. I inspected the file, and I had several times this: +++------------------------- if test -z "$WINDOWMANAGER" ; then if test -x /usr/X11R6/bin/kde ; then WINDOWMANAGER=/usr/X11R6/bin/kde # elif test -x /usr/X11R6/bin/startkde ; then # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # WINDOWMANAGER=/usr/X11R6/bin/startkde # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # elif test -x /usr/X11R6/bin/fvwm2 ; then # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # WINDOWMANAGER=/usr/X11R6/bin/fvwm2 # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment elif test -x /usr/X11R6/bin/wmlist ; then for i in `/usr/X11R6/bin/wmlist` ; do WINDOWMANAGER=`type -p $i` test -n "$WINDOWMANAGER" && break done # elif test -x /usr/X11R6/bin/twm ; then # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # WINDOWMANAGER=/usr/X11R6/bin/twm # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment fi fi -------------------------++- You can see how "Enlightenment" repeatedly broke the file. Now I know why startx did not work. Ok, so I replaced the file with the skeleton one, but...
and edit as you like. BTW, even if you log in via kdm/gdm/xdm, .xinitrc can be useful for starting things like ssh-agent or gpg-agant.
What should I write to get, say, gnome? I have tried "startx gnome" and I got kde4, again. -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))