Skip to content

Instantly share code, notes, and snippets.

@synackme
Created April 17, 2014 06:53
Show Gist options
  • Save synackme/10958979 to your computer and use it in GitHub Desktop.
Save synackme/10958979 to your computer and use it in GitHub Desktop.
Run multiple Firefox profiles as separate Applications

Run multiple Firefox profiles as separate Applications on Mac

Creating a new Firefox profile

Open terminal and execute the following command:

/Applications/Firefox.app/Contents/MacOS/firefox-bin --ProfileManager

This should bring up the Firefox Profile Manager -

Go ahead and create a brand new profile.

Using Automator to run the new Firefox profile as an application
  1. Open Automator
  2. Choose File -> New -> Application automator new app
  3. Choose Utilities group under Library
  4. Drag Run Shell Script to the workflow pane on the right
  5. Paste the following script
/Applications/Firefox.app/Contents/MacOS/firefox-bin -P MyProfile -no-remote &> /dev/null &

custom app with script

  1. Choose File – Save As, and save it wherever you want to keep it. Leave the File Format as Application in the Save dialog.

Making it pretty - Change the Application Icon

  1. Right click on the saved file and choose Get Info ( or use Cmd + I ) to bring up the Info window. Make sure that it is not locked (bottom right corner) -
  2. Open Finder and go to /Applications/Firefox.app/Contents/Resource directory
  3. Open firefox.icns file in Preview (just double click it).
  4. Click on the image shown in the main Preview pane, copy it using Ctrl – C, click on the icon in the top of Info window and paste it using Ctrl – V.

And that is it, your new Firefox Application is ready to go. You can open this even when you have the default Firefox running. And, of course, you can create as many such application as you like.

If you’d like to give different icons to different profiles, just download an icon set and use that with the above steps. One of my favorites is Carbon Firefox, or try a Google search for icons.

@nobrowser
Copy link

Alas, when you change the icon this way it's easy to pick out for starting the distinct profile; but as a running app, in the dock, or in the app switching dialog, the icon will be the same old firefox default icon. Meaning you'll have multiple ones, and no way to tell which you you are in fact switching to. This is a really, really annoying problem with Firefox on the Mac that lots of people have, and so far the only "solution" they have found seems to be installing a whole new copy of Firefox for each profile :( Wtf ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment