--- /usr/bin/startxfce4 2004-02-04 15:19:07.000000000 +0100 +++ /usr/bin/my.startxfce4 2004-02-04 15:28:35.000000000 +0100 @@ -26,5 +26,14 @@ fi -if test x"$DISPLAY" = x"" +case "$1" in + :[0-9]*) DISPSET=1 +esac +if [ $DISPSET ]; then + if [ -x $HOME/.xfce4/xinitrc ]; then + exec xinit $HOME/.xfce4/xinitrc $* -- $1 + else + exec xinit /etc/xfce4/xinitrc $* -- $1 + fi +elif test x"$DISPLAY" = x"" then echo "$0: Starting X server"