From owner-freebsd-gnome@FreeBSD.ORG Tue May 11 10:46:25 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 1AD4016A4CE for ; Tue, 11 May 2004 10:46:25 -0700 (PDT) Received: from sv02.webonaut.com (kirk.webonaut.com [212.41.243.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EC4C43D3F for ; Tue, 11 May 2004 10:46:24 -0700 (PDT) (envelope-from klammer@webonaut.com) Received: from localhost (localhost [127.0.0.1]) by sv02.webonaut.com (Postfix) with ESMTP id 0E14376421; Tue, 11 May 2004 19:46:22 +0200 (CEST) Received: from sv02.webonaut.com ([127.0.0.1]) by localhost (sv02.webonaut.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89928-09; Tue, 11 May 2004 19:46:16 +0200 (CEST) Received: from [192.168.0.9] (sisko.webonaut.com [212.41.243.28]) by sv02.webonaut.com (Postfix) with ESMTP id 9093F7641F; Tue, 11 May 2004 19:46:16 +0200 (CEST) Message-ID: <40A1116E.5050009@webonaut.com> Date: Tue, 11 May 2004 19:46:22 +0200 From: Franz Klammer User-Agent: Mozilla Thunderbird 0.6 (X11/20040510) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Kelsey References: <1084295052.58028.356.camel@zircon> In-Reply-To: <1084295052.58028.356.camel@zircon> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at webonaut.com cc: gnome@freebsd.org Subject: Re: Firefox vs. mozilla X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 17:46:25 -0000 Joe Kelsey wrote: >I have a question about starting browsers. > >I am currently switching from mozilla to firefox, but find an extremely >annoying behavior in the interaction with other gnome apps. I have set >up "File types and programs" so that http and https start mozilla >instead of epiphany or whatever else the annoying gnomers want. >However, I have a launcher so I can launch Firefox directly from the >panel. If I start Firefox, then when I press a http: or https: link in >(for example) Evolution, it opens a tab in the running firefox. >However, if I do not have a browser running, mozilla starts with the >referenced page. > >However, if I change the "File types and programs" setting to run >firefox instead of moxilla, firefox attempts to start a second instance >of itself, instead of just opening a new tab in the running browser. >So, my question becomes, how do I get firefox to start a browser if no >running instance or open a new tab instead of always trying to start a >new instance? It annoys me to have the evolution link process open >either mozilla or firefox depending on more or less random choice. > > > for that issue i wrote me a small script (based on the code from the bottom of /usr/X11R6/bin/mozilla). use it instead of the firebird command. ------------- cut ------------- #!/bin/sh FIREBIRD_CMD="/usr/X11R6/bin/firefox" if [ "$1x" = "x" ]; then URL="about:black" else URL=$1 fi FIREBIRD_REMOTE="openURL(${URL},new-tab)" ${FIREBIRD_CMD} -remote "ping()" && ${FIREBIRD_CMD} -remote ${FIREBIRD_REMOTE} && exit 0 ${FIREBIRD_CMD} ${URL} ------------- cut ------------- franz. >/Joe > > >