#!/bin/sh # # (I removed the GPL stuff, for easier reading. # # if test x"$XDG_CONFIG_HOME" = x"" then BASEDIR=$HOME/.config/xfce4/ else BASEDIR=$XDG_CONFIG_HOME/xfce4 fi if test x"$XDG_DATA_DIRS" = x"" then XDG_DATA_DIRS="/usr/share:/usr/local/share:/usr/share" else XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share" fi export XDG_DATA_DIRS if test x"$DISPLAY" = x"" then echo "$0: Starting X server" prog=xinit else echo "$0: X server already running on display $DISPLAY" prog=/bin/sh fi if [ -f $BASEDIR/xinitrc ]; then exec $prog $BASEDIR/xinitrc -- -nolisten tcp $* elif [ -f $HOME/.xfce4/xinitrc ]; then mkdir -p $BASEDIR cp $HOME/.xfce4/xinitrc $BASEDIR/ exec $prog $BASEDIR/xinitrc -- -nolisten tcp $* else exec $prog /etc/xdg/xfce4/xinitrc -- -nolisten tcp $* fi