- Create Firefox profiles using Firefox profile manager
- 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
vi /Applications/FirefoxTest.app/Contents/MacOs/FirefoxLauncher
- 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 &
chmod u+x /Applications/FirefoxTest.app/Contents/MacOs/FirefoxLauncher
- Test running the app from /Applications
- From the Finder under Applications, click on the app and go to "File -> Make Alias"
- 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