#!/bin/sh progname="$0" curdir=`dirname "$progname"` app_ini="$curdir/xulapp/application.ini" if test -e "/opt/xulrunner-trunk/xulrunner"; then xulrunner="/opt/xulrunner-trunk/xulrunner" fi if test -z "$xulrunner" && test -e "/opt/firefox-trunk/firefox"; then xulrunner="/opt/firefox-trunk/firefox" fi if test -z "$xulrunner" && test -e "/usr/local/xulrunner/xulrunner"; then xulrunner="/usr/local/xulrunner/xulrunner" fi if test -z "$xulrunner"; then if test -n `which xulrunner`; then xulrunner=`which xulrunner` else echo "XULRunner not found!" exit 1 fi fi # add -jsconsole for debugging $xulrunner --app $app_ini -jsconsole