I have created two Firefox profiles, called "Work" and "Play". Specifically, they are in <code>C:\Documents and Settings\Jay Levitt\Application Data\Mozilla\Firefox\Profiles\</code>, named <code>fi7tdwnw.default</code> and <code>ctgcaea7.Work</code>.
I then created two executables, identical except for their icon, in <code>C:\Program Files\Mozilla Firefox</code>, named <code>ffplay.exe</code> and <code>ffwork.exe</code>.
I set up two Windows shortcut .LNK files:
<code>ffplay.lnk</code> launches <code>"C:\Program Files\Mozilla Firefox\ffplay.exe" -no-remote -p Play</code>
<code>ffwork.lnk</code> launches <code>"C:\Program Files\Mozilla Firefox\ffwork.exe" -no-remote -p Work</code>
Since I can't force other applications to launch Firefox via these shortcuts, I instead set ffplay.exe to be the default. Since it was (by default) asking me to choose a profile, I told it to save the Play profile and not ask me again. <code>C:\Documents and Settings\Jay Levitt\Application Data\Mozilla\Firefox\profiles.ini</code> reads as:
Code: Select all
[General]
StartWithLastProfile=1
[Profile0]
Name=Play
IsRelative=1
Path=Profiles/fi7tdwnw.default
Default=1
[Profile1]
Name=Work
IsRelative=1
Path=Profiles/ctgcaea7.Work
I told ffplay to set itself as the default browser, and it seems to be, according to this Sysinternals Process Monitor output when I select "Check Now":
Code: Select all
11624 10:54:21.6668784 AM ffplay.exe 716 RegQueryValue HKCR\HTTP\shell\open\command\(Default) SUCCESS Type: REG_SZ, Length: 130, Data: C:\PROGRA~1\MOZILL~1\FFPLAY.EXE -requestPending -osint -url "%1"
(among other similar entries)
This all seemed to work fine, until I tried clicking a link in Thunderbird, at which point it told me that "Firefox is already running, but not responding". I verified that this isn't specific to Thunderbird; launching <code>ffplay.exe</code> directly from <code>CMD.EXE</code> (with no parameters, or even with -no-remote) gives the same error. I don't even have an <code>ffwork.exe</code> instance running.
I've tried using Process Monitor to trace what Firefox does when that happens, but, frankly, it does a <i>lot</i>...
I've seen some old threads on the topic, but they were all pre-2.0. Just for grins, in case Thunderbird was looking for <code>firefox.exe</code>, I created an NTFS junction for <code>firefox.exe</code> pointing to <code>ffplay.exe</code>, but given that it happens when I launch ffplay directly, I don't think that's related (and it didn't help, anyway).
Any ideas?