Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 7c546297aaa7ef38d590ce6838fd8189 > files > 25

xfce-3.8.16-2mdk.ppc.rpm

#!/bin/sh

rm -f /tmp/Xrootenv.0
rm -f /tmp/fvwmrc*

if [ -f $HOME/.xinitrc ]; then
	env > /tmp/Xrootenv.0
	/bin/sh $HOME/.xinitrc
	exit
fi

if [ -f $HOME/.fvwm2rc.m4 ]; then
	RCFILE=$HOME/.fvwm2rc.m4
else
	RCFILE=/etc/X11/TheNextLevel/.fvwm2rc.m4
fi

if [ ! -z $(type -path fvwm95-2) ]; then
	env > /tmp/Xrootenv.0
	exec fvwm95-2 -f "FvwmM4 -debug $RCFILE" -display :0 \
		> $HOME/.FVWM95-errors 2>&1
fi

if [ ! -z $(type -path fvwm2) ]; then
	env > /tmp/Xrootenv.0
	exec fvwm2 -f "FvwmM4 -debug $RCFILE" -display :0 \
		> $HOME/.FVWM2-errors 2>&1
fi

if [ ! -z $(type -path fvwm) ]; then
	exec fvwm
fi

# last resort

xterm &
exec twm