Wednesday, July 23, 2008

Firefox With Multiple Profiles Running At the Same Time



Some times you like to be logged into the same website twice, under different credentials. For instance, I have two gmail addresses, one I use for personal correspondence and another I use for professional. Logging out, logging in under a different account, logging back out, and logging back in again under the first account is just annoying as all get out.

Now, Firefox supports profiles, which is awesome. But out of the box, it won't let different profiles run at the same time, which sucks.

But through the power of the command line and a few switches, we can fix this!

Right click on your Firefox shortcut. Under the 'Target' box, it will probably say something like this:

"C:\Program Files\Mozilla Firefox\firefox.exe"

Change it to:

"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P NameOfYourCustomProfileHere

The '-no-remote' switch, aka noremote or no remote, allows multiple profiles to run at the same time. The -P switch tells it what profile to use.

If you haven't created multiple profiles, just change it to:

"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P

When you click on the shortcut, this will bring up the profile manager. Check the box that says 'don't run on startup'. Make a new profile, call it 'Alt'. Keep in mind that for the command line, capitalization does matter. '-P alt' is a different profile than '-P Alt'.

Now to get back to your first profile, make another shortcut that looks like this:

"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P default


So now you should have several different shortcuts, renamed to keep them from getting confused.

'Firefox' -> "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P default
'Firefox Alt' -> "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P Alt
'Firefox Personal' -> "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P Personal

etc, etc.

No comments: