Shortcut to a specific profile

From MozillaZine Knowledge Base
Revision as of 00:50, 23 December 2007 by Alice Wyman (talk | contribs) (Spinning off new article - see Talk:Starting Firefox or Thunderbird with a specified profile)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you created additional profiles for your Mozilla application using the Profile Manager, you normally have to open the Profile Manager each time you want to switch to a different profile. Here is a way you can avoid the Profile Manager and start your Mozilla application

You can use the -P "profile name" command line argument to start your Mozilla application with the profile of your choice, either from a desktop or other shortcut or from the Run command.

Desktop shortcut

 You can create a shortcut to a specific profile on the Windows desktop or other location by modifying the shortcut properties as follows,  using Firefox as an example:  
  1. Go to the Firefox installation directory (usually C:\Program Files\Mozilla Firefox), right-click the file "firefox.exe", and select the option "Create shortcut".
  2. Right-click and rename the new shortcut to whatever you like, then right-click the shortcut again and select "Properties".
  3. In the Shortcut tab window, place the cursor at the end of the path inside the Target box.
  4. Click once (so that the path is no longer highlighted) then add a space, -P, another space,then the name of the profile enclosed in quotes (the profile name is case-sensitive), like this:
    "C:\Program Files\Mozilla Firefox\firefox.exe" -P "Profile Name"
  5. Click OK to exit the Properties window.
  6. Drag the new shortcut to the desktop or other location.

Run command

Using a  Firefox profile named default as an example, click the Windows "Start" button, select "Run" and type the following in the "Open:" field,  then click 'OK": 
firefox.exe -P "default"

Note: On Windows Vista, you can press "Windows key+R" to open the "Run" box if you have not enabled the Run command on the Start menu (details here).

Note that the profile must be listed in the Profile Manager and the profile folder must be in the same location where you originally created the profile, for this to work.

See also