Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2004 09:28:04 -0400
From:      David Bremner <bremner@unb.ca>
To:        gnome@FreeBSD.org
Subject:   suggestion for mozilla-firebird port
Message-ID:  <0tk73ufymz.wl@nohost.unb.ca>

next in thread | raw e-mail | index | archive | help
--Multipart_Wed_Jan_14_09:28:04_2004-1
Content-Type: text/plain; charset=US-ASCII


It would be nice to have a script that tries firebird -remote 
first, and then starts a new process.  For me it it is not primarily 
an issue of resources, but rather avoiding annoying profile conflict
messages when some program tries to invoke firebird to browse help.

I have attached a simple one shamelessly cribbed from the
mozilla-devel port.


--Multipart_Wed_Jan_14_09:28:04_2004-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="firebird-remote"
Content-Transfer-Encoding: 7bit

#!/bin/sh

MOZILLA_EXEC="firebird"
LOCATION='new-tab'

case $1 in
    -browser)
    	REMOTE_COMMAND="xfeDoCommand (openBrowser)"
	;;
    -mail)
        echo "mail not supported"
	exit 1;
	;;
    -compose)
        echo "compose not supported"
	exit 1;
	;;
    -*)
    	exec $MOZILLA_EXEC "$@"
	;;
    *)
    	REMOTE_COMMAND="openURL($@, $LOCATION)"
	;;
esac
    
# process found
$MOZILLA_EXEC -remote "ping()"                    &&
$MOZILLA_EXEC -remote "$REMOTE_COMMAND"           && exit 0

# no existing process
exec $MOZILLA_EXEC "$@"


--Multipart_Wed_Jan_14_09:28:04_2004-1
Content-Type: text/plain; charset=US-ASCII



--Multipart_Wed_Jan_14_09:28:04_2004-1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0tk73ufymz.wl>