Home‎ > ‎Tips and Fixes‎ > ‎

Setting Preferred Mail Client in Ubuntu to use Gmail

posted 11 Nov 2010, 15:08 by Ian Gilliam   [ updated 27 Mar 2011, 16:44 ]
Enter the following into a shell script:

#!/bin/sh

/opt/google/chrome/google-chrome "https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed 's/mailto://'`"

Make sure execute is set on the script.

Then enter the script into the preferred dialogue....

~/script.sh %s