Changing email application in Preferred Applications to GMail?

Solution 1:

To set GMail as the default for mailto links in Ubuntu 11.10 :

  1. Install gnome-gmail
  2. Edit ~/.local/share/applications/mimeapps.list and add the line below:

    x-scheme-handler/mailto=gnome-gmail.desktop;

  3. Open System Info (use the Dash) and under Default Applications change Mail to Gnome Gmail

Screenshot of System Info

Solution 2:

Just install gnome gmail

sudo apt-get install gnome-gmail

Then open it.

You should get a prompt asking whether you want it to be your default mail client. Say Yes. Works on 11.10.

Solution 3:

Check this post on WebUpd8.org: Gnome Gmail. It allows Gmail to be selected as the default mail application for Gnome.

Solution 4:

Just a slight alteration of funkymonk's post works. First install gnome-gmail:

sudo apt-get install gnome-gmail

Then open the following:

gedit ~/.local/share/applications/mimeapps.list

You want to add:

x-scheme-handler/mailto=gnome-gmail.desktop;

underneath both "Added Associations" and "Default Applications".

If there is something like

x-scheme-handler/mailto=userapp-Evolution-RZZYTV.desktop

there, you should replace this, otherwise just add the code. Then save and close and it should now work.