Multiple Firefox Profiles at the same time - Firefox Command-line arguments trick!
How often do you wish to run multiple firefox profiles at the same time?
In slightly non-technical words do you ever need to check two different accounts of same service, at the same time?
As an example, consider the scenario (which is 100% real-life and was encountered by my friend Deva) - you are checking mails of your Gmail account and at the same time you want to check another gmail account. What you normally do is open up another Gmail account in another browser. Another similar situation often encountered by many orkuttians who have multiple orkut profiles!
Now from firefox 2.0+ onwards this is solved and you can run firefox with as many accounts as you want! Look at the following screenshots in which I am checking two Gmail accounts at the same time! (Click on image to enlarge it)
Here comes one of the most awaited trick!
#1. Creating a Profile.
By default firefox runs in default profile. To run another instance of firefox with different profile you need to create first a different profile. To do this run firefox with command line parameter CreateProfile followed by profile name.
Window user, can click on “Start -> Run” and execute firefox with followed by the command line arguments. For example,
"C:\Program Files\Mozilla Firefox\firefox.exe" -CreateProfile Rahul
where Rahul is name of the profile. You can use any name.
(Note that the path C:\Program Files\Mozilla Firefox\ may change as per your installation directory.)
On similar lines Linux and Mac OS user can create a new profile.
#2. Running firefox with new profile.
First start firefox the way you start. (This is to assure you that we are going in right direction).
Now Windows users can again click on “Start -> Run” and execute firefox with followed by the command line arguments,
"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P Rahul
where Rahul need to be replaced by the name of the profile you have used in step 1 while creating a new profile.
When you hit ENTER the profile will start in new context!
The key here is -no-remote command-line argument!
Extra Tricks:
You will probably use two or more profiles frequently. In that case the step 2 to run firefox with a new profile will need to be tweaked!
- In simplest way Windows user can right-click on existing firefox shortcut and select copy option from right-click menu.
- Then paste it at your favorite place (probably desktop)
- [optional] It may appear with name like Copy of Mozilla Firefox, change it to some convenient name like Rahuls Firefox or New Firefox or anything you like.
- Now again right-click on new shortcut and click on properties option in right-click menu.
- Switch to shortcut tab in properties window.
- In target you may find - “C:\Program Files\Mozilla Firefox\firefox.exe” change it to something like “C:\Program Files\Mozilla Firefox\firefox.exe” -no-remote -P Rahul. (see screenshot below for more help)
- Now click OK.
Thats it. Another firefox is at your bay!
If you like this post, you may subscribe to my RSS feed or email alerts to receive automatic updates in future! Thanks for reading... :-)
Related Posts...
- Chatting from multiple Google Talk accounts at once!
- Firefox Tweak : Sharing (Synchronize) Firefox Profiles Bookmarks, Extension, etc between Window XP and Windows Vista!
- Hacking Windows NT 5.x (i.e. Windows 2000/XP/2003)
- Using Multiple MySpace Profiles with Firefox Extension!
- Hidden "about:" pages in mozilla firefox!
- Multiple Yahoo Messenger Hack - Using Many Yahoo Accounts at once!
- Setting Up Firefox as IDE for Firefox Extension Development! [Firefox Developers]
- Firefox Tweaks: Address bar as Search BOX - Let Google make you feel Lucky!
- ORKUT N USERSCRIPTS.ORG… (for firefox user only :-)
- Download Videos from Websites Like Google Video, YouTube, MySpace, and Others!





















chitown said, on June 21, 2007 @10:07 pm
Is the “-no-remote” command line argument essentially the same as “MOZ_NO_REMOTE=1″ which I saw on similar processes?
Rahul Bansal said, on June 22, 2007 @10:22 am
Yes chitown,
The effect is same, but MOZ_NO_REMOTE is an environment variable while -no-remote is command-line parameter implemented while resolving bug 325509!
MOZ_NO_REMOTE is not recommended any more.
For information about bug 325509 visit this page!
Ambily said, on June 25, 2007 @5:10 pm
You can open multiple google accounts without using multiple profiles in firefox..
to know how just check out this post on my blog…
http://funfilledblog.wordpress.com/2007/06/25/logging-into-two-diffrent-gmail-or-orkut-account-simultaniously-with-firefox/
comments r welcome….
Critic said, on May 15, 2008 @5:24 am
You’re solution is no solution. You’ve basically run
one google account from firefox, and one from internet
explorer. The fact that you hide internet explorer within
a firefox window doesn’t make it a good solution.
The problem with the original solution here, is that with multiple profiles, you have multiple sets of plugins, themes, bookmarks etc. This can mean the ’second’ firefox profile looks and feels different than your main profile.
Rahul Bansal said, on May 15, 2008 @3:16 pm
@Critic
First this is a RIGHT solution.
I hate Internet Explorer so much that I will never open my Gmail account from it. No matter what happens!
Next as I explained, each firefox profile have different context means they are altogether separate. Its just like having two firefox on the same system where neither of firefox know about each other. You can clone ’second’ profile from first one.
Actually its not your fault as being a microsoft guy, you live in old age.
Forget about synchronizing two profiles on same firefox, we geeks do synchronize any number of firefox from any number of geographical places in the world, not to mention separately from any platform!
These articles will help you!
JOhn said, on July 18, 2008 @6:55 am
@Rahul
I’m pretty sure that Critic was referring to Ambily’s post… not yours!
Rahul Bansal said, on July 20, 2008 @4:04 pm
@John
Well even Ambily posted same trick buddy.
I checked it personally first and found that Critic to be fool.