How do I make mailto: links open gmail in Ubuntu?

Solution 1:

As of Ubuntu 10.04, you can simply install the desktop-webmail package. The first time you click a mailto: link, it will ask you to pick your webmail provider. After that, all mailto: links will open in the webmail provider of your choice.

Solution 2:

In my gnome-default-applications-properties, I set the following custom mail reader:

gnome-open https://mail.google.com/mail/?extsrc=mailto&url=%s

(In gnome-default-applications-properties, also make sure that the default browser is set to Chrome/Chromium.)

Note that this only affects external applications (e.g. gnome-terminal) that invoke a mail agent. mailto: links within Chromium itself work as of r25100. (Chromium Bug 20696)

Solution 3:

I use the daily builds too and when I click on a mailto link it doesn't do anything. I don't think that they have implemented mailto handling yet.

Solution 4:

Since you are using Chrome, you can install an extension which redirects all mailto links to Gmail.