Running Multiple Versions of Firefox
Posted on
November 10th, 2008 by
Ray Baxter
A question:
“I want to create a custom launcher for Firefox 2 and Firefox 3 with different profiles. Perhaps the real question is how do we create a custom version of a Mac application launcher, passing in the arguments we need?”
… without having to invoke it on the command line every time.
Mac OS X is assumed.
Firefoxen is an answer in code. It’s a script to automatically configure multiple installations of Firefox so that they open with different profiles. The script encapsulates what I needed to do to figure out how to solve this problem.
The steps are:
- Modify each application’s Info.plist CFBundleExecutable to point to a shell script inside the application’s bundle
- Create the appropriate shell script that runs ./firefox-bin -P profile-name in each bundle.
- Reregister the application’s bundle with launchservices so that the changes are picked up. Normally they are cached.
Only the last of these took too longer to figure out. You can trigger an update of launchservices by renaming the application bundle (Firefox.app => Firefox3.app), but if you rename it back it seems to revert to the previous db entry. (Cached by application name?)
Unfortunately, you can’t combine 1 and 2 either. I tried multiple permutations on changing the CFBundleExecutable parameter in each bundle from the default firefox-bin to something like firefox-bin -P versioned-profile but I couldn’t make it work with any amount of quoting.
Git it here: http://github.com/yesteray/firefoxen/tree
Here’s a screen grab:
2 Responses to “Running Multiple Versions of Firefox”
Leave a Reply
Search:
Recent Posts
- Embedding Private and Shared Calendars – Google Apps for Your Domain
- Embedding Private and Shared Google Calendars
- Restyle Google Calendar
- Single Purpose Web Dev Browser
- The iCalendar validation project « Jon Udell
Categories
Relevant Links
AtomPub
- Getting to know the Atom Publishing Protocol, Part 1: Create and edit Web resources with the Atom Publishing Protocol
- Getting to know the Atom Publishing Protocol, Part 2: Put the Atom Publishing Protocol (APP) to work
Date and Time
GCalendar
- Articles and Tutorials
- Bugs and Enhancements
- Calendar API FAQ
- Calendar Feeds
- CalVis
- Developer’s Guide
- Google Calendar Data API Group
- Reference Guide
GData
- Authentication
- Batch Processing
- CalVis
- Client Libraries
- Common Elements
- Issues
- libgcal
- Overview
- Protocol Basics
- Protocol Reference
- Reference
- Samples
- Zend Documentation
iCalendar Tools
Online Calendars
- 30 Boxes
- CalendarHub – Web Calendars
- Google Calendar
- LuckyCal.com
- Online calendar publishing: Google Calendar
- Online calendar publishing: iCal
- Online calendar publishing: Outlook
- RSSCalendar
- The Human Calendar
- Yahoo! Calendar


November 10th, 2008 at 6:43 pm
Ray, I and others have been struggling to get firefox to launch with a profile for hours, thank you so much for this ruby script and general how to!
February 7th, 2009 at 5:15 pm
[...] the web. This morning, it occurred to me that I could use the techniques that I used in creating Firefoxen to create a special purpose web application development [...]