#!/bin/sh
# $Header: Xsession,v 4.300 91/06/09 04:23:32 root Rel41 $ Sony Corporation
#
# Xsession
#
# This is the program that is run as the client
# for the display manager.  This example is
# quite friendly as it attempts to run a per-user
# .xsession file instead of forcing a particular
# session layout
#

case $# in
1)
	case $1 in
	failsafe)
		exec xterm -geometry 80x24-0-0 -ls
		;;
	esac
esac

startup=$HOME/.xsession
resources=$HOME/.Xresources

if [ -f $startup ]; then
	exec $startup
	exec /bin/sh $startup
else
	if [ -f $resources ]; then
		xrdb -load $resources
	fi
	mwm &
	exec xterm -geometry 80x24+10+10 -ls
fi
