Skip to content
The beaver is a proud and noble animal

The beaver is a proud and noble animal

Notes from a bemused canuck

  • Home
  • About
  • Bookmarks
  • Pictures
  • Resume
  • Wine
  • Random Recipe
  • Toggle search form

gmail-notifier woes on x86_64

Posted on March 15, 2008 By admin

One of the things I miss in linux was the windows Gmail notifier. There is a linux version, written in Python, but it wasn't working in a 64 bit distribution. If you tried to run it out of the box, you would get the dreaded “wrong ELF class: ELFCLASS32” exception, because the distributed shared object to create a tray icon was compiled in 32 bits. If you tried to grab another version compiled in 64 bits, you now got the “undefined symbol: Py_InitModule4” error, which was caused because some file headers were redefined and renamed to avoid conflicts (sic!) in 64 bits. I was going nuts at this point, because I am most certainly not a Python programmer. But I still managed to find a fix, before everybody else on the net, woohoo!

A simple cure in 3 easy steps

1. get package python-gnome2-extras
2. change a few lines in notify.py as described below:

#comment out the pytrayicon import and import egg and egg.trayicon
#import pytrayicon
import egg
import egg.trayicon

#change the way the tray object is built
#create the tray icon object
#self.tray = pytrayicon.TrayIcon(self.lang.get_string(21));
self.tray = egg.trayicon.TrayIcon(self.lang.get_string(21));

3. enjoy!

Works like a charm :D

This makes me go squeeeeeeeeeeeeeeeee!

  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
uncategorized Tags:geek

Post navigation

Previous Post: Tea – Is there anything it can't do?
Next Post: Take notes, this is how I want my funeral :)

Related Posts

  • This is a test geek
  • Phone says screw you, hard reset! computers are evil
  • More on code quality geek
  • I need a t-shirt of this geek
  • Cybernetic pinup geek
  • Sometimes, I love being a geek :) geek

Power to the beaver!

Show me the beaver!
March 2008
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Feb   Apr »

Quote of the day

"The Truth Shall Make Ye Fret"
--(Terry Pratchett, The Truth)

Random Posts

  • The path of inner peace
  • Some days feel like this
  • Cat on shrooms 
  • A visit to the zoo
  • COMICS!!!!!
reading leopard

Tags

bobble the little blue owl boobies brought to you by the fda cats chonk christmas comics computers are evil covid-19 dealing with idiots dilbert dog ducks galleries geek god bless the land of the free holidays house I am Canadian land of cheese and chocolate linked news lolcat london news from the stupid not my dog nsfw pets pictures potd2014 qotd random shit re-member recipes relationship shrill slice of life stress Tao the british way The Peanut things i miss travel video wine work

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2025 The beaver is a proud and noble animal.

Powered by PressBook Premium theme