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:

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

    ReplyDelete
  2. This comment has been removed by the author.

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

    ReplyDelete
  4. 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.

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

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

    ReplyDelete