#!/bin/sh

FIREFOX=`which firefox`
FIREFOX_REMOTE="/opt/firefox/mozilla-xremote-client"

URL="$1"
if [ "x$URL" = "x" ]; then
	URL="about:blank"
fi

if ! $FIREFOX_REMOTE -a firefox "openURL($URL)" ; then
	exec $FIREFOX "$URL"
fi
exit 0

