2007-11-28

20,000 Lines Under the Sea

I wanted to write a small script for installing/changing pictures for folders containing photos in Nautilus.

I dug into sources, dug out the required Corba interfaces, understood how bonobo and its python wrapper work.

Under old Ubuntu with Gnome 2.16.1 this script works, under the new one with Gnome 2.20 Bonobo.GeneralError with an empty message is thrown.
#!/usr/bin/env python
import bonobo
import Bonobo

bonobo.activate()
obj = bonobo.get_object ('OAFIID:Nautilus_Metafile_Factory', 'Nautilus/MetafileFactory')
print dir(obj)
I do not like it, but I have no choice - I have to edit ~/.nautilus/metadata

Update 03.12.2007 - The presentation slides Guadec2003 - PyOrbit

Update 17.12.2007 - I got evidence that this is a bug. I'm curious, for how long it will remain unnoticed

No comments:

Post a Comment