#!/bin/sh

# This script will launch enlightenment and make sure
# configurations are set up correctly

add()
{
   if [ ! -r /mit/$1/ ]; then
     attach -h -n -q -a -r $1
   fi
   PATH=${PATH}:/mit/$1/`athdir /mit/$1`; export PATH
   MANPATH=${MANPATH}:/mit/$1/man
}

add graphics
add gnu
add newtex
add sipb
add infoagents
add outland
add windowmanagers
add desk
add games

PATH=${PATH}:/mit/windowmanagers/libexec/; export PATH

echo "You are using a VERY BETA WINDOWMANAGER : 0.14"
echo "Please be aware there may be problems"
echo "If it's having errors, delete your config files:"
echo "     rm -rf ~/.enlightenment"
echo ""

zwrite -d -q -s "enlightenment zephyr" -n $USER \
       -m "You are using a BETA windowmanager: enlightenment 0.14 .
You may lose. If you are losing, please try deleting your config files 
by typing: 
     rm -rf ~/.enlightenment"

exec enlightenment.real "$@"

