dingyichen (dingyichen) wrote,
dingyichen
dingyichen

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.
Tags: chrome, gmail, gnome2, kde4
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

  • 5 comments