Created
September 22, 2010 03:04
-
-
Save elecnix/591056 to your computer and use it in GitHub Desktop.
set-gmail-as-default-mail-client-in-ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To install: | |
# mkdir ~bin | |
# Paste this in ~bin/open_mailto.sh | |
# chmod a+x ~bin/open_mailto.sh | |
# Go to System \ Preferences \ Preferred Applications | |
# Under Mail Reader, select Custom, and then put /home/username/bin/open_mailto.sh into the Command window, changing "username" to your username. | |
# Voilà! Credits to: http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/ | |
google-chrome "https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed 's/mailto://'`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good, but "preferred applications" are no longer in preferences. and I don't know where it went either :)