If it won't be simple, it simply won't be. [Hire me, source code] by Miki Tebeka, CEO, 353Solutions

Friday, December 04, 2009

Making GMail The Default Email Application On Ubuntu

  • Open System->Preferences->Preferred Applications
  • Change "Mail Reader" to "Custom"
  • Write bash -c 'to="%s"; gnome-open "https://mail.google.com/mail?view=cm&tf=0&to=${to#mailto:}"' in the "Command:" box

6 comments:

Jose Frechín said...

Replace chromium-browser instead of firefox. If using chromium.

Miki Tebeka said...
This comment has been removed by the author.
Miki Tebeka said...

Changed "firefox" to "gnome-open", this way the default browser will be opened. (Thanks for the idea Jose)

Marcello Nuccio said...

You can find a better solutions in the comments on http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/

If you are using Firefox the best solution is to set "firefox %s" as the custom mailer command. Then choose your preferred webmail from firefox preferences.

Marcello Nuccio said...

Ah, on modern desktops "xdg-open" is a more general solution then "gnome-open".

Miki Tebeka said...

Yup, xdg-open is very good. I just don't think it's installed by default.

Blog Archive