Many of you probably already know this, but the Gmail web Client can be set as the default Email client using Prism or Chrome. All you have to do is create a script file in your home directory and place this into there. (this is for Chrome by the way)
Make the script executable, (right click on file-->Properties-->Permissions-->check box or navigate to directory and chmod +x the file)
This is great, however, I noticed that when you add that script as the default mail client, gm-notify insist on bringing you to the compose message dialog(when gm-notify is set to open the current mail client) instead of the inbox, so i changed your script to weed that little bug out!
Code:
#!/bin/sh
if ($1 > /dev/null); then
/opt/google/chrome/google-chrome --app="https://mail.google.com/mail/?hl=en&shva=1"
else
/opt/google/chrome/google-chrome --app="https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed 's/mailto://'`"
fi
So now we have the best of both worlds, opening from gm-notify gives me the inbox, while clicking on an email address gives me the compose message dialog.
Thanks to this video for the idea: http://www.youtube.com/watch?v=WGv9kwwya-w
I hope this helps someone! Also, the script can easily be rewritten for Firefox.
Code:
#!/bin/sh
if ($1 > /dev/null); then
firefox "https://mail.google.com/mail/?hl=en&shva=1"
else
firefox "https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed 's/mailto://'`"
fi
Please give any corrections to the script if needed. Thanks!
Bookmarks