#!/bin/sh
# A simple script to start mozilla.

set -e
# Check for DISPLAY
if [ -z $DISPLAY ]
then
    echo "No DISPLAY is set."
    exit 1
fi

#  Check for a $HOME/.mozilla directory.  If it exists, Whine.
if [ -e "$HOME"/.mozilla/libxpcom.so ]
then
    xmessage -fn 10x20 -center -file /usr/lib/mozilla/mozilla.message
    exit 1
fi

exec /usr/lib/mozilla/mozilla "$@"
