| 1 | #!/bin/sh |
| 2 | |
| 3 | progname="$0" |
| 4 | curdir=`dirname "$progname"` |
| 5 | app_ini="$curdir/xulapp/application.ini" |
| 6 | |
| 7 | if test -e "/opt/xulrunner-trunk/xulrunner"; then |
| 8 | xulrunner="/opt/xulrunner-trunk/xulrunner" |
| 9 | fi |
| 10 | if test -z "$xulrunner" && test -e "/opt/firefox-trunk/firefox"; then |
| 11 | xulrunner="/opt/firefox-trunk/firefox" |
| 12 | fi |
| 13 | if test -z "$xulrunner" && test -e "/usr/local/xulrunner/xulrunner"; then |
| 14 | xulrunner="/usr/local/xulrunner/xulrunner" |
| 15 | fi |
| 16 | if test -z "$xulrunner"; then |
| 17 | if test -n `which xulrunner`; then |
| 18 | xulrunner=`which xulrunner` |
| 19 | else |
| 20 | echo "XULRunner not found!" |
| 21 | exit 1 |
| 22 | fi |
| 23 | fi |
| 24 | |
| 25 | # add -jsconsole for debugging |
| 26 | |
| 27 | $xulrunner --app $app_ini -jsconsole |