#!/bin/sh

# Script to provide a default browser for ShellExecuting a URL
# Chris Morgan <cmorgan@alum.wpi.edu>
# 2003/12/28

# make mozilla not think some "X:\" is the temp directory, thanks to Rein Klazes
unset TMP TEMP

if [  -n "`which mozilla`" ]
then
  mozilla $*
elif [ -n "`which netscape`" ]
then
  netscape $*
elif [ -n "`which galeon`" ]
then
  galeon $*
elif [ -n "`which konqueror`" ]
then
  konqueror $*
elif [ -n "`which mozilla-firebird`" ]
then
  mozilla-firebird $*
elif [ -n "`which opera`" ]
then
  opera $*
else
  # return failure
  exit 1
fi

# return success
exit 0


