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

February 21, 2010 at 2:20 am
Thanks from Chile. This information is just what I`m looking for.
February 21, 2010 at 5:50 am
Glad it helped!
February 17, 2011 at 7:50 am
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!
February 17, 2011 at 10:17 pm
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!