December 10, 2007

If you share your desktop, occassionally require a big set of Firefox extensions or use your browser for various, accurate applications, you should consider using multiple profiles.

You can keep one Firefox installation with different, independent preferences, looks and sets of extensions.
When you launch Firefox, it can ask which profile to run.

Choose profile

Is it really useful? It depends on how you use your browser. It may be a good way to secure your passwords and not waste system resources on dispensable tasks performed by extensions which you do not currently need.

Set multiple Firefox profiles

Start with closing Firefox (all windows, including downloads).

You need to open the Profile Manager.
In Windows you need to press Windows key + r to open the run line.

Open run line

A new window will appear. Type firefox.exe -ProfileManager

Run line

In Linux, go to the Firefox directory and start Firefox with ./firefox -ProfileManager command.

Once you get the Profile Manager window, you need to be careful. Otherwise, you may easily remove your existing profiles including all the settings.
Managing profiles is pretty straightforward from now on. Let’s add a new profile.

Press “Create profile” button.

Create Profile Wizard

You will run Create Profile Wizard. Click Next.

Choose profile's name

Choose a rational name for your profile (e.g Work or John) and optionally change the profile directory pressing “Choose Folder…” button. Click Finish.

That’s it! You have successfully created a new profile. You will probably want to untick the “Don’t ask at startup” box in the Profile Manager. Otherwise, Firefox would open the same chosen profile every time it would be run. If you untick the box, it will run the Profile Manager at startup.

Shortcut to the chosen profile

If you use your default profile most of the time, choosing it at each startup of Firefox may get a bit irritating. However, you can bypass it by creating a shortcut to the chosen profile or running Firefox from the command line with appropriate flags.

You can select the profile you want to run with -P flag. Let’s try it. Close Firefox, open the command line (Windows key + r for Windows) and type firefox.exe -P "name of profile" (case sensitive, include quote marks!). Firefox will open the chosen profile without opening the Profile Manager window.

Now we can create a shortcut to the specific profile. Right click on the Desktop or in the desired folder and choose New » Shortcut.

Create shortcut

In new window type the path of firefox.exe file with the profile flag, normally "%ProgramFiles%\Mozilla Firefox\firefox.exe" -P "name of profile" will work for Windows.


Name shortcut to the profile

Click Next, type the desired name of the shortcut and click Finish. You get a new icon, which opens Firefox with the profile you selected.

RSS feed for comments on this post. TrackBack URL.

5 comments:

  1. Pingback by More on profiles: run multiple profiles simultaneously, install Firefox 2 and Firefox 3 on one machine » Improve Firefox
    5:06 pm, February 3, 2008

    […] have already described how to create and manage multiple profiles in Firefox. If you haven’t already read it, it may be a useful introduction. If you have a […]

  2. Comment by b dub
    3:56 pm, August 3, 2008

    As a test I copied my “43bg40jr.default” profile directory and renamed it “Firefox1.work” then created a shortcut to firefox adding a few switches at the end.

    HOW ITS DONE:
    1. Add the firefox application path followed by the switch “-profile” followed by;
    2. The ff Profile Path in quotes (in my case, Firefox1.work).
    3. If you want to run other instances of Firefox simultaneously then add -no-remote
    (4. if desired, plop the shortcut into the “All Programs” folder and add a shortcut key)

    …so the shortcut will look like this:

    “C:\Program Files\Internet\Firefox\firefox.exe” -profile “%userprofile%\Application Data\Mozilla\Firefox\Profiles\PROFILENAME.default” -no-remote

    You can cut and paste this into a shortcut but change PROFILENAME.default to your profile directory.

    WHY (this is better than using profile manger):
    - Dont have to use PM at all and can use keyboard shortcuts to open different profiles (ie; Ctrl + H=home, Ctrl + W=work etc)
    - Saves time from selecting from the profile manager at startup
    - Can still run multiple profiles simultaneously using the “-no-remote” command switch
    - If FF is your default browser, some applications no longer open pages in Firefox after clicking “dont ask at startup” so you can still use your default profile as normal

    BUGS:
    -copying profiles sometimes breaks some extensions (just reinstall them or use CLEO/FEBE to backup/reinstall)
    -profile names (preceeding the extension .default or .work or whatever) MUST be 8 characters long or else weird things happen (no icons, broken addons etc). Any 8 characters work, letters or numbers.

    Hope this helps someone,
    b-dube@hotmail.com

  3. Comment by b dub
    3:58 pm, August 3, 2008

    sorry, bad cut-and-pasting job, shouldve started with:

    You can also create a Firefox shortcut to a profile you DIDN’T create using profile manager (ie: a profile from another computer) The following is a method to open multiple profiles WITHOUT having created a profile using the firefox profile manager.

  4. Comment by Ashish
    5:51 am, November 6, 2008

    Thanks for sharing that information.

  5. Comment by b dub
    2:28 am, December 23, 2008

    someone asked me to clarify my message so I will :)
    Basically, if you have firefox on another computer (ie:work) that you’d like to use somewhere else - you cant use profile manager to help you so do this instead:

    1. copy the ‘outsider’ profile into your “%userprofile%\Application Data\Mozilla\Firefox\Profiles” directory.

    2.Paste this into a shortcut:
    “%ProgramFiles%\Mozilla Firefox\firefox.exe” -profile “name of profile” -no-remote

    3. if desired, plop the shortcut into the “All Programs” folder and add a shortcut key

    [-no-remote will allow you to open multiple instances of Firefox at once]

Leave a comment: