Firefox and Thunderbird

Friday, January 7th, 2005 at 3:19 pm

I’ve installed Firefox on my Linux partition also now. I realised I liked it better than the Mozilla suite after using it a lot on Windows over the past few days.

The SuSE partition now has apt4rpm on it too. I like apt-get it’s so easy.

apt-get install <shiny_new_software>

Then apt-get goes away and to get it and installs it for you.

The Firefox install went smoothly but Thunderbird had a few problems. Firstly it wouldn’t run as a non-root user and showed the error message:

Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client! (thunderbird-bin:7478): Gtk-WARNING **: cannot open display:

I found an old post about it in a NetBSD forum.

It seems that Thunderbird’s “Import Settings” dialog was causing it and it can be solved by doing “xhost +” before running Thunderbird for the first time. Then “xhost -” after the dialog and everything works fine.

The second problem was that URLs weren’t opening Firefox like I wanted them to. I had to add these lines to prefs.js (found in $HOME/.thunderbird/<profile_name>):

user_pref("network.protocol-handler.app.ftp", "/home/gemma/.thunderbird/open_browser.sh"); user_pref("network.protocol-handler.app.http", "/home/gemma/.thunderbird/open_browser.sh"); user_pref("network.protocol-handler.app.https", "/home/gemma/.thunderbird/open_browser.sh");

open_browser.sh was a modified version of a bash script from a Mozilla help page.

#!/bin/sh export FIREFOX_HOME="/opt/MozillaFirefox" url="$1" if [ "x$url" = "x" ]; then url="about:blank" fi if $FIREFOX_HOME/bin/firefox.sh -remote openURL\("$url"\); then exit 0 fi $FIREFOX_HOME/bin/firefox.sh "$url";

Wow. My site looks nicer in Firefox.

I’m having a really good day today. I got some things done that I’ve been meaning to do for a while and although there have been problems the end result is worth it.

Comments are closed.