Yeah, thanks for the reply Chris. For anybody else who wants to be able to click on the mail notification panel app and open Opera Mail when there is new mail, here is what to do. Open a text editor like gedit and copy and paste the following:
if ps ax | grep -v grep | grep /usr/lib/opera/*/opera > /dev/null
then opera -remote "openM2()"
else opera -mail
Make sure /usr/lib/opera/*/opera corresponds with the actual path on your system. You can probably replace this whole path with simply "opera" and it will work also. Afterwards, save the file somewhere with the ".sh" ending to remind you that it is a script. In a terminal user logged in as root make the script executable with the following command:
chmod filename.sh a+x
Replacing filename with the actual filename obviously. Now set this script as your default mail program in System-Preferences-Personal-Preferred Applications menu under custom command. Ensure to include the path to your script ( eg /home/your_username/shell_scripts/filename.sh ) Set the mail-notification "click-action" to open the default mail program.
Hope this might be useful for someone else too.
Last edited by eoinjones; 01-24-2009 at 04:52 AM.
Reason: missing comma