How to: Linux’s Gmail Notifier for Google Apps

*Warning* This is going to require some command line knowledge and editing source files! This is a dirty fix; Let me know how to make it better!

Gmail Notifier is a Linux alternative for the notifier program released by Google, it is written in Python and provides an attractive and simple way to check for new mail messages.

screenshot-6

Gmail Notifier works with Google Apps accounts but when you try to access your inbox it goes to the gmail website and not your domain’s URL.

screenshot-4For those that don’t have Gmail Notifier installed you can find more information about it and install/download it at their website. For the lazy Linix users (you Ubuntu users), you can find it in the package manager (Applications -> Add/Remove…), go to apt:gmail-notify in a web browser, or run the following in the command line:

sudo apt-get install gmail-notify

After installation of gmail-notify run the following in the command line:

cd /usr/lib/gmail-notify
sudo gedit notifier.py

I used gedit to modify my file but you are free to use whatever text editor you like.

Next find the following code:

def gotourl( self, wg=None):
        print "----------"
        print "launching browser "+self.options['browserpath']+" http://mail.google.com/"
        os.system(self.options['browserpath']+" http://mail.google.com/ &")

Replace it with

def gotourl( self, wg=None):
        print "----------"
        print "launching browser "+self.options['browserpath']+" https://mail.google.com/a/SITE.COM"
        os.system(self.options['browserpath']+" https://mail.google.com/a/SITE.COM &")

And that is all you need to do! Restart gmail-notify and the changes should be made. Now if only Gmail Notifier included this by default and let you manage multiple accounts at the same time.

About these ads

5 thoughts on “How to: Linux’s Gmail Notifier for Google Apps

  1. Pingback: How to: Linux’s Gmail Notifier for Google Apps « twodayslate « Boosis Notes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s