Friday, February 19, 2010

How to create multiple Firefox profiles alias/shortcuts on Mac?

  1. Create Firefox profiles using Firefox profile manager
    • /Applications/Firefox.app/Contents/MacOS/firefox-bin -profilemanager
  2. Create an app (here FirefoxTest is my app) for each individual profile
    • mkdir -p /Applications/FirefoxTest.app/Contents/MacOs
    • vi /Applications/FirefoxTest.app/Contents/Info.plist
    • copy & paste the follow content into Info.plist
      
      
      CFBundleExecutable
      FirefoxLauncher
      CFBundleIdentifier
      com.example.FirefoxLauncher
      CFBundleInfoDictionaryVersion
      6.0
      CFBundleName
      FirefoxLauncher
      CFBundlePackageType
      APPL
      CFBundleSignature
      ????
      CFBundleVersion
      1.0
      
      
      
  3. vi /Applications/FirefoxTest.app/Contents/MacOs/FirefoxLauncher
  4. copy & paste the following into FirefoxLauncher and replace the profile name (here firefoxtest is my profile)
    #!/bin/bash
    /Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P firefoxtest &
    
  5. chmod u+x /Applications/FirefoxTest.app/Contents/MacOs/FirefoxLauncher
  6. Test running the app from /Applications
  7. From the Finder under Applications, click on the app and go to "File -> Make Alias"
  8. Drag and drop the new alias to the dock
Where Firefox profiles are located?
ls ~/Library/Application\ Support/Firefox/Profiles/

No comments:

Post a Comment