# This file is sourced by Xsession(5), not executed.

# Wrap the session startup if all of the following are true:
# - This is a default session
# - This is an AFS homedir
# - The user has a standard Athena shell
# - The user does not have an xsession script
if [ afs = "$DEBATHENA_HOME_TYPE" -a ! -e "$USERXSESSION" \
     -a ! -e "$ALTUSERXSESSION" ]; then
  case $SHELL in
  */bash)
    STARTUP="/usr/lib/init/xsession.bash $STARTUP"
    ;;
  */tcsh)
    STARTUP="/usr/lib/init/xsession.tcsh $STARTUP"
    ;;
  esac
fi
