#!/bin/sh
# Definitions
WM_PATH=/usr/local/bin/mate-session
WM_ARGS=
# Start the window manager and remember its PID.
${WM_PATH} ${WM_ARGS} &
WM_PID=$!
# Launch some stuff
#
# If necessary/desired, do things like setting a background, opening a terminal,
# start helper applications or whatever, if that's not already done by the
# window manager's configuration file.
# Wait for the window manager to die, then exit.
wait ${WM_PID}
exit 0