It takes a little bit of work to get Firefox to open Thunderbird and vice versa:
To get Firefox to open a mailto: link in Thunderbird
1. Create a file called mailto.sh and place it in your application directory don't forget to
make this script executable ( chmod +x mailto.sh )
2. Create or edit the user.js file in the /.mozilla/firefox/default.y2h/ directory
mailto.sh
#!/bin/bash
thunderbird *remote 'ping()' || exec thunderbird "$@" # exec thunderbird if there's no instance running
thunderbird *remote "xfeDoCommand(openInbox)" # otherwise raise window,
[ "${1%%:*}" = 'mailto' ] && thunderbird *remote "mailto(${1#mailto:})" # and maybe send the mailto:
user.js
user_pref("network.protocol*handler.app.mailto", "/home/xxxx/apps/firefox/mailto.sh");
To get Thunderbird to handle mailto: links in Thunderbird
1. Create a file called tbmailto.sh and place it in your application directory don't forget
to make this script executable ( chmod +x mailto.sh )
2. Create or edit the user.js file
for me this was in the /.thunderbird/default/43mklxiq.slt/ directory
Note: In KDE, the default web browser must be set from the Control Center as:
Control Center *> KDE Components *> Component Chooser *> Web Browser *> in an
application based on the contents of the URL must be selected
tbmailto.sh
#!/bin/sh
#script author: asterix
#
http://forums.mozillazine.org/viewto...=136157#136157
export MOZILLA_FIVE_HOME=/home/xxx/apps/thunderbird
if [ $(ps aux | grep thunderbird | wc *l) *gt 4 ]; then
# thunderbird is running (thunderbird est lance)
$MOZILLA_FIVE_HOME/thunderbird *remote "mailto($1?subject=$2)"
else
# thunderbird is not running (thunderbird n'est pas lance)
$MOZILLA_FIVE_HOME/thunderbird *P default *compose mailto:$1?subject=$2;fi
user.js
//Use thunderbird to handle mailto:
user_pref("network.protocol*handler.app.mailto", "/home/xxxx/apps/thunderbird/tbmailto.sh");
To get Thunderbird to use Firefox for http, https & ftp links
Add the following lines to the same thnderbird user.js file listed above:
user.js
// Use firefox for http, https & ftp links
user_pref("network.protocol*handler.app.http", "/home/xxx/apps/thunderbird/openlink.sh");
user_pref("network.protocol*handler.app.https", "/home/xxx/apps/thunderbird/openlink.sh");
user_pref("network.protocol*handler.app.ftp", "/home/xxx/apps/thunderbird/openlink.sh");
You may also want to take a look at:
http://www.pclinuxos.com/forum/index.php?topic=10300.0