#!/bin/sh
#
# Created by Eric Sandall 2007-04-17
#
# This script is here to set the correct LD_LIBRARY_PATH for firefox 1.0+
# based on the information from this thread:
# http://lists.freebsd.org/pipermail/freebsd-gnome/2004-October/008443.html
#

export LD_LIBRARY_PATH=/usr/lib/kompozer
remote=""
if /usr/lib/kompozer/kompozer-bin -remote "ping()" > /dev/null 2>&1 ; then
	if [ -z "$@" ] ; then
		remote='-remote xfeDoCommand(openBrowser)'
	fi
fi

/usr/lib/kompozer/kompozer-bin $remote $@
