How to make Gmail open when clicking mailto: links in the same browser it is clicked? (Chrome/Firefox)

I just installed 12.04 and when clicking mailto: links Thunderbird opens.

I want Gmail to open in the browser, in which mailto: was clicked.

  • So if I am in Firefox and click a mailto: link a new FF tab should with Gmail should open.
  • And if I am in Chrome, a new Chrome tab should open accordingly.

Is there a way to do this via some script? Or would I need to set this in some system settings?

4 Answers

You can make Chrome open when you click a mailto: link:

Access Gmail, and click an icon of the shape of overlapped double diamonds, next to the star icon in the omni-box where the URL is displayed.

If you don't see it, try reloading the page.

Source, by mulogics on Web Applications Stack Exchange

If you somehow missed the opportunity and said 'no' after the diamond question, your chance to undo that is under chrome://settings/handlers, where gmail will be listed as handler-question-blocked.

4

There is an option for that in firefox.

Edit -> Preferences -> Applications -> mailto

or

Firefox menu -> Options -> Options -> Applications -> mailto

Firefox Options Page

2

gnome-gmail lets you do exactly that.

This is what reads from the Description section in the control file of gnome-gmail package.

support for Gmail as the preferred email application in GNOME

To install gnome-gmail, run this command:

sudo apt-get install gnome-gmail

After installing, open gnome-gmail and adjust your settings.

However, if and when you click on the mailto: links, it will open a Gmail tab in the preferred browser instead of whichever browser you are currently in.

As of Ubuntu 14.04, these instructions did the job under Chrome:

  1. Open your Gmail account
  2. Open the Javascript console. (ctrl-shift-J)
  3. In the Javascript console, enter:

    navigator.registerProtocolHandler( "mailto", "", "Gmail");
  4. Press Enter, and you should get the confirmation popup to approve.

This needs to be repeated for each browser profile you have.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like