. /etc/thinstation.env
. $TS_GLOBAL

$WMNAME & >> $LOGFILE 2>&1
if [ -f /etc/background-$SCREEN_RESOLUTION.jpg ] ; then
  wmsetbg /etc/background-$SCREEN_RESOLUTION.jpg
elif [ -f /etc/background.jpg ] ; then
  wmsetbg /etc/background.jpg
else
  wmsetbg /etc/background-1024x768.jpg
fi
if pkg_is_loaded xtdesk ; then
	xtdesk & >> $LOGFILE 2>&1
fi
sleep 2
if [ -e $WKDIR/$WMNAME.autostart ] ; then
	. $WKDIR/$WMNAME.autostart
fi
wait
