To make Thunderbird open Firefox, follow these steps (change paths to suit your system)
1- Create a shell script called "openlink.sh" in Thunderbird's directory
(
/usr/lib/mozilla-thunderbird for me) containing the following lines :
Code:
#!/bin/sh
export MOZILLA_FIVE_HOME="/usr/lib/mozilla-firefox"
url="$1"
if [ "x$url" = "x" ]; then
url="about:blank"
fi
if $MOZILLA_FIVE_HOME/mozilla-xremote-client openURL\("$url, new-tab"\); then
exit 0
fi
exec $MOZILLA_FIVE_HOME/firefox "$url"
2- chmod +x
/usr/lib/mozilla-thunderbird/openlink.sh
3- Create a file called user.js in your ~/.thunderbird/default.xxx/ containing :
// Use firefox for http, https & ftp links
user_pref("network.protocol-handler.app.http", "
/usr/lib/mozilla-thunderbird/openlink.sh");
user_pref("network.protocol-handler.app.https", "
/usr/lib/mozilla-thunderbird/openlink.sh");
user_pref("network.protocol-handler.app.ftp", "
/usr/lib/mozilla-thunderbird/openlink.sh");
4- Copy mozilla-xremote-client from
/usr/lib/mozilla-thunderbird to
/usr/lib/mozilla-firefox
That should open Firefox, and if it's already open, it should open a new tab. (This is a modification of a post on Thunderbird forum)
###########################
To open mailto: links (Firefox to Thunderbird), do the following:
1. Launch Firefox and type "about
:config" as address
Set "network.protocol-handler.external.mailto" to "true"
2. Create a file called "mailto.sh" in Firefox's directory (
/usr/lib/mozilla-firefox for me) containing the following lines shell script:
Code:
#script author: asterix
#http://forums.mozillazine.org/viewto...=136157#136157
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-thunderbird
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
# try xremote first
if [ $(ps aux | grep thunderbird | wc -l) -gt 1 ]; then
$MOZILLA_FIVE_HOME/mozilla-xremote-client "mailto($1?subject=$2)" && exit 0; fi
# if xremote failed, then launch the program
$MOZILLA_FIVE_HOME/thunderbird -P default -compose "mailto:$1?subject=$2"
3. chmod +x
/usr/lib/mozilla-firefox/mailto.sh
4. Download MozEX from
http://texturizer.net/firefox/extensions/#mozex
5. In Firefox, Tools > Options > Extensions > mozex > Settings
Check "Intercept mailto: clicks"
In Commands / Mailer, fill field with
/usr/lib/mozilla-firefox/mailto.sh %r
That should open a compose window in Thunderbird when clicking an e-mail link
(Taken from a post on Mozillazine forum)