Make smart financial decisions with DailyFinance

Re-enable mailto: links in Firefox on Linux

Major annoyance here: if you're using Firefox on Windows, and you click on an email link, then your default email program opens with the email address already filled in for you. On Linux, you can't count on that. Some people running GNOME report success by setting the GNOME default mailer, but that doesn't work for everyone, especially - obviously - those who don't run GNOME. In my case, clicking on the mailto link results in … nothing.

I found a solution here (I was pointed there by this comment at NewsForge - thanks, Anonymous Reader!): http://www-es.fernuni-hagen.de/~jfh00/blog/040916.html. It's in German, but don't freak, because the key line is in good ol' American. Here's what you do.

First, close Firefox. It shouldn't be running when we're editing these files.

Look for your Firefox profile folder. It's probably at /home/[user]/.mozilla/firefox/default, but it may be elsewhere. If you're not sure where it is, then follow this link, which leads to the excellent MozillaZine Knowledge Base and should tell you what you need to know.

In your profile folder, you may see a file named user.js. If you do, great - we're going to be editing that file. If you don't, then create a file named user.js using your favorite text editor.

Open user.js and enter the following line:

user_pref("network.protocol-handler.app.mailto","/usr/bin/thunderbird");

This is key: if you don't want to use Thunderbird as the mail program that opens when you click on a mailto link, or if you've installed Tbird in a non-standard location, you need to change /usr/bin/thunderbird to a different path. In my case, I used /usr/bin/kmail. (If you use pine and want a brilliant solution to this problem, read this message at NewsForge from someone who got pine to work - use user.js instead of prefs.js, however).

Save user.js, restart Firefox, and find a web page with an email link on it. Click on the link, and an email ready to compose, with the email address already filled in, should open using your preferred email program. Cool.

Now, if someone could just help me get File > Send Link to work, since, sadly, the above method doesn't fix that. Choosing File > Send Link opens up an email, but it's entirely blank, with no link anywhere to be seen. :(

PS - The German page referenced above also has instructions for setting up Tbird so that if you click on http, https, or ftp links in an email, Firefox opens. I don't use Tbird, but those of you who do might want to check it out. Just edit user.js!

Reader Comments

(Page 1)
concepts
blogging (1)
books (2)
howto (0)
humor (1)
licensing (0)
networking (2)
odf (1)
presentations (1)
programming (1)
review (2)
rss (1)
security (6)
switching (0)
wireless (1)
distros
auditor (1)
debian (2)
fedora core (2)
k/ubuntu (12)
knoppix (2)
libranet (1)
mac os x (2)
solaris (1)
suse (3)
format
flac (1)
mp3 (1)
odf (0)
ppt (0)
hardware
cpu (0)
dvd (1)
keyboard (1)
mouse (1)
printing (1)
microsoft
bullying (0)
ntfs (1)
office (2)
windows (3)
multimedia
imagemanagement (1)
music (3)
podcast (1)
rip-mix-burn (1)
video (0)
people
daveraggett (1)
ericmeyer (1)
software
amarok (0)
azureus (3)
bash (4)
bittorrent (4)
bloglines (1)
clamav (1)
css (1)
ethereal (1)
firefox (11)
gmail (1)
gnome (3)
html (1)
java (2)
kde (2)
kmail (1)
openoffice.org (3)
picasa (1)
regex (1)
rubyonrails (1)
ssh (3)
thunderbird (0)
vim (3)
vmware (0)
wordpress (1)
companies
google (2)
microsoft (0)
novell (0)
red hat (0)
sun (1)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: