Make Google Chrome with Gmail the Default for Mailto Links in Ubuntu

Starting with the great instructions here, I have set my default mailto link action to open Gmail in Google Chrome. Simply follow those instructions, but then edit the script so its entire contents are as follows:

#!/bin/sh

/opt/google/chrome/google-chrome "https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed 's/mailto://'`"

And that should do it. Enjoy.

Advertisement
Posted in Ubuntu. Tags: . 4 Comments »

4 Responses to “Make Google Chrome with Gmail the Default for Mailto Links in Ubuntu”

  1. Ariel Elgueta Says:

    Thanks from Chile. This information is just what I`m looking for.

  2. thejambi Says:

    Glad it helped!

  3. Noam Says:

    Thanks a lot! works like a charm
    I did have to change the path of chrome though
    ‘which chrome’ didn’t work so i typed:
    ps -ef|grep chrome
    and found that it’s in:
    /opt/google/chrome/chrome

    Thanks again!

  4. thejambi Says:

    Glad I could help! But actually there is an easier way to do this in Ubuntu now. Just run sudo apt-get install desktop-webmail

    Then use desktop-webmail as your email client (in perferred applications) and it will let you set it to gmail when you click on a mailto link!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.