Discussion of general topics about Mozilla Thunderbird
I'm using Mandrake Linux v.9.2 with KDE v.3.1.4 and Thunderbird v.0.5 and Firefox v.0.8.
Thunderbird doesn't access a web browser when I click on a hyperlink in an email or a news posting. When I do that, I get an error message saying that "galeon-bin" crashed (I've never been able to run Galeon in this Linux installation; I've always gotten that same error message). So I removed Galeon, and now nothing happens when I click on a URL within a message in Thunderbird.
Why would TB attempt to start up the Gnome browser Galeon when my desktop is KDE and my default browser in KDE is Konqueror (i.e. the application associated with MIME type html is Konqueror).
Similarly, any other attempt to have Thunderbird connect to a webpage fails. Examples: clicking on "Release Notes" or "Mozilla Thunderbird Help" in the Help Menu, or clicking on "Download New Themes" or "Get New Extensions" in the Tools> Options menu - nothing happens. Thunderbird will connect to my email and news servers though.
Ideally, I'd like to have TB start up Firefox under these conditions. How do I configure it to do that?
Thanks for your help.
Other people who are using Thunderbird under Linux also seem to have run into the problem of not having their default browser start up when they click on a URL in Thunderbird.
Searching further, I came across a recent thread addressing this problem in the Mozilla Thunderbird General forum (Title: No response clicking on links, from 2/27/04 1:41 a.m.). See:
http://forums.mozillazine.org/viewtopic ... lt+browser
I've followed the advice offered in that thread about how to change the default browser from within GNOME and that has almost fixed the problem. Specifically, here's what I've done:
Logout from KDE, login again with GNOME as the desktop environment, go to Configuration > GNOME > GNOME Control Center, click on it, go to Desktop Preferences > Advanced > Preferred Applications, Web Browser tab, check Custom Web Browser, in the Command field enter the path to the desired browser, followed by %s (e.g. /home/robert/firefox/firefox %s). I also changed the default Mail Reader tab in the same way, e.g. /usr/local/thunderbird/thunderbird %s. I didn't check the Start in Terminal box in either case.
Now clicking on a URL in Thunderbird does fire up Firefox; however, a problem remains if Firefox is already open. In the above thread, Lokrin reports that he encountered the same problem. He writes:
"Hi - I'm also having problems. I went ahead and set Firefox as the default browser using the Gnome config program mentioned above. The problem now is that if firefox is already open, then clicking a link in Thunderbird causes the dialog for chosing a profile to open. How do I get it to use the same profile but either a different tab or window, or even just overwriting the current tab/window."
RobF, here's what I did to be able to use Firefox as default browser from Thunderbird with my Gentoo (should work with Mandrake too) :
1- Create a shell script called "openlink.sh" in Thunderbird's directory (/opt/MozillaThunderbird for me) containing the following lines :
if [ "x$url" = "x" ]; then
if $MOZILLA_FIVE_HOME/mozilla-xremote-client openURL\("$url, new-tab"\); then
exec $MOZILLA_FIVE_HOME/firefox "$url"
2- chmod +x /opt/MozillaThunderbird/openlink.sh
3- Create a file called user.js in your ~/.thunderbird/default/xxx/ containing :
// Use firefox for http, https & ftp links
4- Copy mozilla-xremote-client from /opt/MozillaThunderbird/ to /opt/firefox/
If it works, clicking on a URL in Thunderbird will launch Firefox and if Firefox is allready running, it will open a new tab.
Hope it helps you.
Thanks, Beastux. I did what you suggested, and now it's working like a champ. I can't say though that I understood much of what I was doing when I was following your recipe.
Now, if only the reverse could be done, i.e. have Firefox open a compose window in Thunderbird when I click on an email address in a web page. At this point I'm only getting an error message "mailto is not a registered protocol." Any suggestions?
I've finally found out how to have Firefox to open a compose window in Thunderbird when clicking on an email address.
1. Launch Firefox and type "about:config" as address
You must have "network.protocol-handler.external.mailto" set to "true"
2. Create a file called "mailto.sh" in Firefox's directory (/opt/firefox for me) containing the following lines shell script found in another mozillazine post) :
#script author: asterix
# 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 /opt/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 /opt/firefox/mailto.sh %r
When you restart Firefox, it should work.
Thanks for another goodie, Beastux! This one works for me almost flawlessly. There is only a very minor cosmetic problem: when I put the cursor on the highlighted email address in Firefox the status bar shows the address with a prefix of "mailto:", e.g. "mailto:firstname.lastname@example.org", and the mailto.sh script moves that entire string over into the address field of the compose window of Thunderbird. My mail server rejects an email with such an address. Of course, it's no big deal to delete that prefix "mailto:" but I may forget to do it and find out a day later that the email didn't go out. Does anyone know how to fix this?
RobF, here is the right script :
if [ $(pidof thunderbird-bin | wc -w) -gt 0 ]; then
# thunderbird is running
url=`echo "$url" | sed -e's/^mailto://'`
$MOZILLA_FIVE_HOME/thunderbird -remote "mailto($url)"
# thunderbird is not running
$MOZILLA_FIVE_HOME/thunderbird -P default -compose $url
The "mailto" problem doesn't seem to exist anymore with it.
Thanks, Beastux, for reworking the Firefox mailto.sh script. Opening Firefox from a URL in Thunderbird and opening Thunderbird from an email address in Firefox both work flawlessly now.
Great to have those capabilities now, and thanks again for all your effort!
I used your script for opening URL's in Firefox 0.8 from Thunderbird 0.6.
Worked for me as well. This is a BIG annoyance solved for me.
I'll probably get around to trying the "mailto support" in Firefox as well.
I wish the Firefox & Thunderbird teams would at least include some
"default support" for these features that can be toggled on and off.
I think a lot of non-IE-users are going with this combination and would
use the options.
It is nice to be able to add custom scripts for your own solutions,
however, I think we are "missing the boat" on converting a lot more
users by igonoring just a little push to this browser & email client combo.
Make this option to easy to ignore & use with other non-IE solutions.
Thank you very much for the scripts above!!
beastux, i just wanted to say thanks as well. i have completed the first fix and am working on the second but haven't quite gotten it to work yet. i agree with sgilvin that there should be tighter built in integration between the two apps. i've also realized that i REALLY need to make the time to teach myself at least the basics of shell scripting. any way thanks again for sharing your scripts.
Thanks for the info, Beastux. Very useful.
Just a note for those that may be having difficulties:
I had to add a path to the "pidof" command in your revised "mailto.sh" script to make it work correctly. In my linux distro (mandrake 9.1) "pidof" lives in "/sbin" which is not part of the regular user path. The "pidof" command may live in a differen't place for other distros, or "/sbin" may be part of the regular user path on other distros which is why it seems to work for others, or they are running as root.
Thanks again, Beastux.
I've been trying to follow these instructions for my Fedora Core setup. My Firefox and Thunderbird are in subdirectiories of my Home folder, so I've been changing things as necessary. I get to the last step and don't understand what I'm supposed to be copying (I'm new to Linux). There doesn't seem to be a file or folder with that name in my Thunderbird folder. Can someone please help?
EDIT: Ok, scratch that last request, I just tried it after a reboot and it seems to be working fine!
Since these .sh files are in the program's home folders am I right in thinking that they going to need to be replaced should I update to newer versions of Firefox and Thunderbird?
hey, freerangechicken, i was having problems with the firefox fix and i also run drake (9.2) and after specifying the full path to pidof all was well. thank you.
Ah man, that script to force TB to open FF is beautiful. Works perfectly on Mandrake 10/KDE.
Thanks. I was starting to give up. Nearly every search result for this subject resulted in a forum troll telling people to search.
thank you so much for posting these scripts.....i prefer to use firebird and thunderbird and not Mozilla Suite.....now i use both with truly no problems for install and execution....again thank you so much...
i am female and i don't do windows and definitely don't do macs..
i fly a LearJet--- tonyaflies.com
Who is online
Users browsing this forum: No registered users and 2 guests