Spurred on by my recent adoption of Gnome-Do, I got to making this work. Hopefully it will save someone else some frustration.
In /home/you/ (really ~/) I created a directory system/ . Replace “you” with whatever your user is.
I made a file, gmail.sh containing
opera --remote 'openURL(https://mail.google.com/mail/?view=cm&fs=1&tf=1&to='$1', new-page)'
chmod it correctly
chmod u+x ~/system/gmail.sh
In the “Preferred Applications” menu under System > Preferences, I added this line to the custom mail client:
/home/alex/system/gmail.sh %t
Adding the same line to Opera will almost work; under Preferences > Advanced > Programs > Mailto I added
Open with other application:
/home/alex/system/gmail.sh
Parameter:
%t
So far this works pretty well. Opera’s opening up email links perfectly, now. Gnome-Do must be passing things a little differently as the to: line from Do includes the “mailto:” bit of the link. Anyone have any ideas for removing that bit without messing up other things? What’s the standard way to pass an email address as an argument to an application? Inquiring newbies would be interested to hear.
I’d be lying out my backside if I didn’t credit HowToGeek for the basics.