Wednesday, April 8, 2009

Links in Thunderbird will not open in existing Firefox

Just recently, Thunderbird was causing Firefox to open my ProfileManager instead of using my existing running firefox instance. So in order to address this, I did some research and found that there are "hidden" environment variables passed that cause Firefox to do this. I hate this behavior, so I found a work-around: Open the Thunderbird configuration editor and set the following:
  • network.protocol-handler.app.http to "/home/username/bin/ff"
  • network.protocol-handler.app.https to "/home/username/bin/ff"
(Replace the username with your username)

Then create the file "/home/username/bin/ff" as:

#!/bin/bash
unset MOZ_NO_REMOTE
unset MOZ_LAUNCHED_CHILD
unset MOZ_PIS_API
unset MOZ_PIS_MOZBINDIR
unset MOZ_PIS_SESSION_PID
unset MOZ_PIS_USER_DIR
/usr/bin/firefox $@

Remember to make it executable

Viola, it now works as it should.


© Copyright 2007 - Andrew Robinson.
Please feel free to use in your applications under the LGPL license.