#!/bin/bash
#
########################################
#
# gnome-session-sunray - establishes
#                        GNOME user
#                        environment for
#                        SunRay users
#
# Written: Naaman Campbell
#          28 October 2005
#
########################################

# setup sound daemon for current user
if [ "$SUN_SUNRAY_TOKEN" ]; then
  pkill -U $USER esd
  /usr/bin/esd -d $AUDIODEV -nobeeps -terminate &
fi

exec /usr/bin/gnome-session "$@"
