Package: firefox Version: 1.5.dfsg+1.5.0.1 Tags: patch With the current firefox-runner script, the options for using multiple profiles appear not to work quite right. This is because firefox-bin prefers to create a new window using an existing running firefox, due to the -a option. The effect is that -P et al don't work if you have firefox running already unless you supply a suitable -a as well.
The patch below arranges for -P, -CreateProfile and -ProfileManager to imply suitable values for -a, so that you'll usually get the effect you wanted (for -P, this is a new window from the browser with the specified existing profile, if available, or a new browser if not). The patch also arranges to document in firefox(1) the -a option to the runner script. This problem was originally reported and somewhat investigated in the Ubuntu bugtracker at https://launchpad.net/products/firefox/+bug/31746, and I have just deployed the patch below in Ubuntu dapper. Regards, Ian. --- debian/firefox-runner~ 2006-03-08 10:57:08.000000000 +0000 +++ debian/firefox-runner 2006-03-09 15:49:56.000000000 +0000 @@ -153,7 +153,7 @@ fi case "${arg}" in - -a | --display | -contentLocale | -UILocale | -remote | --debugger | -height | -width | -chrome | -P) + -a | --display | -contentLocale | -UILocale | -remote | --debugger | -height | -width | -chrome | -P | -CreateProfile) prev=${arg} continue ;; @@ -164,6 +164,13 @@ -a) APPLICATION_ID="${arg}" ;; + -P|-CreateProfile) + case "${arg}" in + default) APPLICATION_ID=firefox ;; + *) APPLICATION_ID=firefox--"${arg}" ;; + esac + set "$@" "${prev}" "${arg}" + ;; --display) CMDLINE_DISPLAY="${arg}" set "$@" --display "${arg}" @@ -192,6 +199,10 @@ -g | -debug) DEBUG=1 ;; + -ProfileManager) + APPLICATION_ID="unique--`uname -n`--$$" + set "$@" "${arg}" + ;; -*) set "$@" "${arg}" ;; --- debian/firefox.1~ 2006-03-08 10:57:08.000000000 +0000 +++ debian/firefox.1 2006-03-09 15:41:32.000000000 +0000 @@ -16,6 +16,9 @@ .SH USAGE \fBfirefox\fR is a simple shell script that will set up the environment for the actual executable, \fBfirefox\-bin\fR. +If there is a Firefox browser already running, \fBfirefox\fR will +arrange for it to create a new browser window; otherwise it will start +the Firefox application. .SH OPTIONS A summary of the options supported by \ffirefox\fR is included below. @@ -71,14 +74,29 @@ .B \-v, \-version Print Firefox version. .TP +\fB\-a\fR \fIapplication\-id\fR +Check for a running Firefox started with the specified +\fIapplication\-id\fR. When \fBfirefox\fR is invoked for +the first time with a particular \fIapplication\-id\fR, a new Firefox +application is started; subsequent invocations of \fBfirefox\fR +with the same \fIapplication\-id\fR will cause the already-running +Firefox to bring up a new window. + +The default is \fB\-a firefox\fR. +.TP \fB\-CreateProfile\fR \fIprofile\fR Create \fIprofile\fR. +Implies \fB\-a firefox\-\-\fR\fIprofile\fR, or \fB\-a default\fR +if \fIprofile\fR is \fBdefault\fR. .TP \fB\-P\fR \fIprofile\fR Start with \fIprofile\fR. +Implies \fB\-a firefox\-\-\fR\fIprofile\fR, or \fB\-a default\fR +if \fIprofile\fR is \fBdefault\fR. .TP .B \-ProfileManager Start with profile manager. +Implies \fB\-a\fR with a fresh unique \fIapplication\-id\fR. .TP \fB\-UILocale\fR \fIlocale\fR Start with \fIlocale\fR resources as User Interface locale. By default, it is -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

