[pygtk] nautilus-python

Dimitri Van Landuyt dimitri.vanlanduyt at gmail.com
Fri Apr 27 15:01:10 WST 2007


Dear pygtk mailing list;

I am trying to write a nautilus extension in python, and running into a
problem. For my project, I need access to the GnomeVFSFileInfo object
linked to the nautilus file by using the method get_vfs_file_info() on
the file passed to my property page. However, when executing this
method, my Nautilus (on Ubuntu Feisty) seems go in an endless loop and
after a while crashes. This is also confirmed on other distributions.
Is there an alternative way to access the gnomevfs object linked to a 
NautilusFile? Any reason why this happens? What am I doing wrong?

code:

import gnomevfs
import nautilus

def get_property_pages(self, files):
        if len(files) != 1:
            return
        file = files[0]
	file_info = gnomevfs.get_file_info(file_uri)

At the final step my script hangs...
        
Thanks in advance for help!

Dimitri



ps. please if you reply, please direct your reply also to me since I'm 
not subscribed to the mailing list


More information about the pygtk mailing list