#!/bin/sh
#
# Created by Eric Sandall 2004-12-09
# Modified for Seamonkey by Arwed v. Merkatz 2005-12-21
#                       and Vlad Glagolev 2011-02-25
#
# This script is here to set the correct LD_LIBRARY_PATH for seamonkey 1.0+
# based on the information from this thread:
# http://lists.freebsd.org/pipermail/freebsd-gnome/2004-October/008443.html
#
export MOZILLA_FIVE_HOME=/usr/lib/seamonkey
export LD_LIBRARY_PATH=/usr/lib/seamonkey
remote=""
if /usr/lib/seamonkey/seamonkey-bin -remote "ping()" > /dev/null 2>&1 ; then 
	if [ $# -eq 0 ] ; then
		remote='-remote xfeDoCommand(openBrowser)'
	fi
fi
/usr/lib/seamonkey/seamonkey-bin $remote "$@"
