<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d23884446\x26blogName\x3dJust+Another+Tech+Blog\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://justanothertechblog.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://justanothertechblog.blogspot.com/\x26vt\x3d-484221019928432923', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Just Another Tech Blog

Anything and everything having to do with technology, computers, science, and most of all... Linux! The documentation of my Linux endeavor.



How-To Geek: Set Gmail as Default Mail Client in Ubuntu

Friday, May 11, 2007

Here's an incredibly helpful guide from the How-To Geek on setting Gmail as the default mail client in Ubuntu. This means, whenever you click an contact link (containing mailto:"") on a website, it will automatically open in Gmail as a new message. Here's the process:

Go to System -> Preferences -> Preferred Applications.
Under Mail Reader, select Custom, and then put this into the Command window, changing "username" to your username.

/home/geek/open_mailto.sh %s

Now, create a script in your home directory called open_mailto.sh (view the How-To to download the script):

#!/bin/sh

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

Open a terminal and type in the following command, to make the script executable:

chmod u+x ~/open_mailto.sh
And there you have it! "Mailto:" links now open in gmail! Check out the full How-To @ howtogeek.com. Thanks How-To Geek!
posted by linnerd40, Friday, May 11, 2007


2 Comments:

will this work for epiphany?

commented by Anonymous Anonymous, 2:45 PM  

Hmm... that is a good question. You could probably create a script to do the same with epiphany. You'd have to play with it. Not much of an epiphany user myself, so I can't really say.

commented by Blogger linnerd40, 6:55 AM  

Add a comment