Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Use GMail in Google Chrome as default mail client in KDE and GNOME2

Yes, I do have both boxes. I also got GNOME3, but I haven’t tested the mail stuff yet.

For KDE:

System-Settings->Default Application->Email Client,
Choose "Use a different email client" and the command line
(From Gmail as the KDE default email client):



/opt/google/chrome/google-chrome https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=%t&su=%s&%u

For GNOME2:

If you use nothing but default browser, simply install gnome-gmail (it’s in Fedora).
If not, thing is a bit harder, as Gnome only fill %s when it’s stand-alone, (i.e. url %s is valid while url=%s isn’t’).

So you need some small script (assume it’s called gmail-chrome.sh) like:


#!/bin/sh
/opt/google/chrome/google-chrome "--app=https://mail.google.com/mail?extsrc=mailto&url=$1"

Then go to System->Preference->Default application->Email Reader
Choose "Custom" and the command line:


/path/to/gmail-chrome.sh %s

Use



xdg-open "mailto:test@test?Subject=Hi"

To see whether it work correctly.

Advertisements

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: