2009/1/20 Evgeni Golov <sarge...@die-welt.net>

> While looking at upstream bugzilla for that issue, I discovered another
> nasty one: http://bugzilla.gnome.org/show_bug.cgi?id=500996
> Do you have any modules that could trigger it?
>

I found an example extension (block-size-column.py - see attachment) that
can trigger the bug you pointed : if I uncomment file.get_vfs_file_info()
and restart nautilus (killall nautilus) => nautilus hang.


I wonder if we should fix that one too, while we are at it.
>

I'm ready to test a new .deb. :)

Regards,
-- 
-[ Stéphane Bernaud ]-
import os
import urllib

import nautilus

class ColumnExtension(nautilus.ColumnProvider, nautilus.InfoProvider):
    def __init__(self):
        pass
    
    def get_columns(self):
        return nautilus.Column("NautilusPython::block_size_column",
                               "block_size",
                               "Block size",
                               "Get the block size"),

    def update_file_info(self, file):
        if file.get_uri_scheme() != 'file':
            return
        
#        file.get_vfs_file_info()
        filename = urllib.unquote(file.get_uri()[7:])
        
        file.add_string_attribute('block_size', str(os.stat(filename).st_blksize))

Reply via email to