wilmens™

by William W. Mensah

myDiary 4.2 for Linux on Windows

  • Thursday Sep 4,2008 01:21 PM
  • By wmensah
  • In myDiary

Thanks to py2exe and Inno Setup Compiler I’ve been able to get the Linux version of myDiary 4.2 to run on Windows (of course with GTK+ Runtime Environment). Thanks Chris

Ok, so I went through hell yesterday trying to figure out why the UI wont show any of my external .png images located in the pixmap folder. The culprit? – gdk-pixbuf.loaders. A file located inside the …\etc directory. The path to libpixbufloader-ico.dll amongst several other dll files had been hard-coded inside the gdk-pixbuf.loaders file which I had to manually change before it finally worked.

I’m currently having 2 issues right now:

  • Face Cap image wont load…..I have no clue what’s going on with it.
  • Windows desktop shortcut is having problems locating the .glade XML file which the python file depends on.

Oh well….I’m jumping on that right now.

3:35pm – FIXED!

Killed 2 birds with one stone! Here’s the stone:

os.path.realpath(os.path.dirname(sys.argv[0]))

Yea, more like a rock….it simply gives you the path to the application you’re running and from there you can use an os.path.join or whatever to link to other files or directories you need to access…..like my glade file in this case :)

Other issues:

  • Gtkspell is not working….
  • Synchronization algorithm needs some serious modification in order to work in Windows….ugh!