Sophie

Sophie

distrib > PLD > ra > i686 > by-pkgid > 9cf79e90d68dda07c0ac47aa577af697 > files > 1

openmotif-2.1.30-8.src.rpm

#!/bin/sh
#
# RunWM - this is a script used to launch window manager
#

if [ -x /usr/X11R6/bin/mwm ] ; then
	if [ ! -e $HOME/.mwmrc ] ; then
		MWMRC="`mktemp /tmp/mwmrcXXXXXX`"
		( cat /etc/X11/mwm/system.mwmrc
		  wmconfig --output=mwm --rootmenu=Programs ) > $MWMRC 2>/dev/null
		eval "exec /usr/X11R6/bin/mwm -xrm \"mwm*configFile: $MWMRC\""
	else
		# if this works, we stop here
		eval "exec /usr/X11R6/bin/mwm"
	fi
else
cat <<EOF
 WARNING: You selected MWM as your window manager, but your installation
 of MWM does not appear to be functional. The file /usr/X11R6/bin/mwm
 could not be found.
EOF
fi