Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2005 22:02:23 +0000
From:      Jeremy Prior <jez@netcraft.com>
To:        gnome@freebsd.org
Subject:   firefox 1.0.1 profiles
Message-ID:  <1109541743.56667.10.camel@chagford.netcraft.com>

next in thread | raw e-mail | index | archive | help

--=-wswaKC+yc4W+OHY5nrlb
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Just upgraded to firefox-1.0.1 without a hitch, until I tried to set the
profile from the command line - this invokes the profile manager
regardless of which profile is selected.

The firefox shell wrapper in /usr/X11R6/bin now parses flags/arguments
itself whereas before it just passed them through to firefox-bin.
However, it doesn't know about the -ProfileManager and -P options, and
assumes that any unknown flag doesn't take an argument.  This is fine
for -ProfileManager, but obviously doesn't work for -P.

Ie:

        % firefox -P default
        /usr/X11R6/bin/firefox: WARN, target: /home/jez/.mozilla/firefox/default not an URI/file/dir

The patch to fix this is trivial (but attached :-)

jez
-- 
      Jeremy Prior  <jez@netcraft.com>  http://www.netcraft.com/
 Netcraft Ltd, Treenwood Ho, Rowden La, Bradford-on-Avon, BA15 2AZ. UK
       Tel: +44-1225-867111 (switchboard)  Fax: +44-8700-517767

--=-wswaKC+yc4W+OHY5nrlb
Content-Disposition: attachment; filename=firefox.patch
Content-Type: text/x-patch; name=firefox.patch; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

--- firefox.orig	Sun Feb 27 16:43:23 2005
+++ firefox	Sun Feb 27 21:49:12 2005
@@ -278,6 +278,15 @@
 	    moreargs="${moreargs} $1"
 	    shift
 	    ;;
+	-P)
+	    if [ -n "$2" ]; then
+		moreargs="${moreargs} $1 '$2'"
+		shift 2
+	    else
+		echo "$0: ERROR, -P needs an argument. Exiting" 1>&2
+		exit 1
+	    fi
+	    ;;
 	-*)
 	    moreargs="${moreargs} $1"
 	    shift

--=-wswaKC+yc4W+OHY5nrlb--



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