*sudo vi /usr/bin/gmailto
#!/usr/bin/python
# gmailto: Workaround to use GMail as your default email-client
import sys
import os
if len(sys.argv) >= 2:
email = sys.argv[1]
if email[0:7] == "mailto:": email = email[7:]
email = email.replace('?','&')
email = email.replace('&subject=','&su=')
else: email = False
os.execlp("gnome-open","","https://mail.google.com/mail/" + (email and "?view=cm&fs=1&to=%s" %(email) or ""))
*sudo chmod +x /usr/bin/gmailto
* Open System > Preferences > Preferred Applications
* Set Mail Reader to Custom
* Set the custom command to: "gmailto %s"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment