From owner-freebsd-gnome@FreeBSD.ORG Wed Jan 14 05:28:38 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 502DA16A7D8 for ; Wed, 14 Jan 2004 05:28:38 -0800 (PST) Received: from convex.cs.unb.ca (convex.cs.unb.ca [131.202.244.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5644543D5A for ; Wed, 14 Jan 2004 05:28:06 -0800 (PST) (envelope-from bremner-dated-1074691685.e947f0@convex.cs.unb.ca) Received: from bremner by convex.cs.unb.ca with local (Exim 4.24; FreeBSD) id 1Agl41-0007NC-GU for gnome@FreeBSD.org; Wed, 14 Jan 2004 09:28:05 -0400 Received: by convex.cs.unb.ca (tmda-sendmail, from uid 1266); Wed, 14 Jan 2004 09:28:05 -0400 (AST) Received: from bremner (helo=convex.cs.unb.ca.unb.ca) by convex.cs.unb.ca with local-esmtp (Exim 4.24; FreeBSD) id 1Agl40-0007N3-MY for gnome@FreeBSD.org; Wed, 14 Jan 2004 09:28:04 -0400 Date: Wed, 14 Jan 2004 09:28:04 -0400 Message-ID: <0tk73ufymz.wl@nohost.unb.ca> To: gnome@FreeBSD.org User-Agent: SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: multipart/mixed; boundary="Multipart_Wed_Jan_14_09:28:04_2004-1" From: David Bremner X-Delivery-Agent: TMDA/0.87 (Carry Back) X-TMDA-Fingerprint: 8JmSGX7ZV0ssqMfORWOm8ZI2Jis X-Primary-Address: bremner@unb.ca X-Tmda-Bare: David Bremner Sender: David Bremner Subject: suggestion for mozilla-firebird port X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Bremner List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 13:28:38 -0000 --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--