Re: Forcing update of icon after metafile change

On Mon, 2009-10-12 at 11:54 +0100, Nicholas Jeffries wrote:
> Hi,
> If I have subclassed InfoProvider, and want to update a custom icon
> for a file at the point update_file_info() is called.
> Is there any way I can make a change to the xml relevant metafile in
> ~/.nautilus/metafiles and force nautilus to use the new information
> without actually restarting nautilus? I am doing this via an extension
> using the Python bindings. Ideally I would do it via a Python lib, but
> could call a system command if necessary.

Not really, but the latest versions of nautilus drops the xml files and
uses gio/gvfs to store metadata. This means you can update it from a
plugin or even another app.

 Alexander Larsson                                            Red Hat, Inc 
       alexl redhat com            alexander larsson gmail com 
He's a jaded ninja jungle king for the 21st century. She's an elegant Buddhist 
angel from Mars. They fight crime! 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]