Hi Kay,

 if you want to have kde start at bootup,
   you usually run kdm as displaymanager,
 if you want to have gnome start at bootup,
   you usually run gdm as display manager

 you cannot have both at same time
 you can write a program that lets you choose which one to run
 here is how i do that :

#!/bin/bash
cd /
TMP=/tmp/ChooseDisplaymanager.out
if [[ -e $TMP ]] ; then rm $TMP ; fi
whiptail  --title "Choose DisplayManager" --menu "" 12 30 5 \
  g gnome k kde s shell x [EMAIL PROTECTED] 8 [EMAIL PROTECTED] 2>$TMP

DDM=`cat $TMP`
rm $TMP
if [[ $DDM == "x" ]] ; then
  if [[ -e /home/.Xauthority ]] ; then rm /home/.Xauthority ; fi
  ln -s /home/xuser/.Xauthority /home/.Xauthority
# dont background next command ! it 'll fail !
  sudo -u xuser -H startx -- -bpp 16
elif [[ $DDM == "8" ]] ; then
  if [[ -e /home/.Xauthority ]] ; then rm /home/.Xauthority ; fi
  ln -s /home/xuser/.Xauthority /home/.Xauthority
# dont background next command ! it 'll fail !
  sudo -u xuser -H startx -- -bpp 8
elif [[ $DDM == "k" ]] ; then
  echo "/usr/bin/kdm" > /etc/X11/default-display-manager 
  if [[ -e /home/.Xauthority ]] ; then rm /home/.Xauthority ; fi
  ln -s /home/kuser/.Xauthority /home/.Xauthority
  /usr/bin/kdm
  echo "none" > /etc/X11/default-display-manager
elif [[ $DDM == "g" ]] ; then
  echo "/usr/bin/gdm" > /etc/X11/default-display-manager 
  if [[ -e /home/.Xauthority ]] ; then rm /home/.Xauthority ; fi
  ln -s /home/guser/.Xauthority /home/.Xauthority
  /usr/bin/gdm
  echo "none" > /etc/X11/default-display-manager
fi

 it is a hack, but it works
 it needs to be run from /etc/rc* before /etc/init.d/kdm (or gdm or xdm)
   are being called,
   because they use value of defaultdisplaymanager.

 if you only want kde to always run,
  then simply change /etc/X11/default-display-manager

 hope this helps,

 Siward


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to