The How-To Geek has posted some really useful instructions for setting Gmail as the default email client in Ubuntu. How-To Geek starts his post by saying:
Every Geek uses Gmail… it's pretty much required. And now you can set Gmail as the default client in Ubuntu without any extra software.
I think his opening statement is a slight generalisation :) Having said that, I am indeed a geek and I do use Gmail so he may have a point! Anyhow, I followed the instructions and the hack works well. I did deviated slightly and placed the shell script in my
bin directory; this way the script can be called by name as it sits within my system path. For future reference the script I used has the following content: