#!/bin/sh

DIR=/usr/share/lucidor

if which xulrunner; then
    xulrunner $DIR/application.ini "$@";
elif which newmoon 2>/dev/null; then
    newmoon -app $DIR/application.ini "$@";
elif which basilisk 2>/dev/null; then
    basilisk -app $DIR/application.ini "$@";
elif which iceweasel 2>/dev/null; then
    iceweasel -app $DIR/application.ini "$@";
elif which icedog 2>/dev/null; then
    icedog -app $DIR/application.ini "$@";
elif which abrowser 2>/dev/null; then
    abrowser -app $DIR/application.ini "$@";
else
    echo "Could not find XULRunner runtime engine."
    exit 1;
fi
