Re: where is emblem info stored ?



On 24 Jan 2003, Mark McLoughlin wrote:

> Hey,
> 
> On Fri, 2003-01-24 at 04:59, Alexander Larsson wrote:
> > On 23 Jan 2003, Soeren Sonnenburg wrote:
> > 
> > > On Thu, 2003-01-23 at 10:34, Alexander Larsson wrote:
> > > > On 23 Jan 2003, Soeren Sonnenburg wrote:
> > > > 
> > > > > Hi!
> > > > > 
> > > > > As I realized that all my emblem assignments are gone since I upgraded
> > > > > to nautilus 2.1.91 (from 2.0.8).
> > > > > 
> > > > > I wonder whether someone could explain where the information about
> > > > > whether a file/dir has an emblem is stored in current nautilus / was in
> > > > > 2.0.x.
> > > > > 
> > > > > As I have really many of these emblems assigned (~100) this is a major
> > > > > annoyance for _ME_.
> > > > 
> > > > They are stored in ~/.nautilus/metafiles/*.xml. And look something like:
> > > > <keyword name="package"/><keyword name="personal"/><keyword name="special"/>
> > > > 
> > > > It would be great if someone could hack up a perl script to rename them.
> > > 
> > > I probably would, but where was the info before, i.e. in nautilus 2.0.x
> > > ?
> > 
> > Same place, only the keywords changed names.
> 
> 	It would also be *really* great if we could a link to this script and a
> warning about the change into the release notes. CC-ing the release
> team.
> 
> 	Alex, is there no policy on backwards compatibility with meta data ?
> After running the script won't you now have lost the emblems if you log
> back into GNOME 2.0 ?

Actually the situation is like this:
Emblems were moved from nautilus themes to icon themes. The files were 
renamed from keyword.png to emblem-keyword.png, but this translation is 
done entierly in nautilus, so the metadata keywords are the same. The only 
thing that causes problem is if you installed custom emblems in 
~/.nautilus/emblems. These are not read by the current nautilus 2.2 code 
for two reasons:
1) we look for emblem-keyword.png
2) we look in the icon theme instead of ~/.nautilus/emblems

So, a script that copies ~/.nautilus/emblems/* to 
~/.icons/gnome/48x48/emblems and adds "emblem-" to the filename should 
fix this.

Unfortunately there is another problem with the whole custom emblem thing. 
If you use a theme that doesn't inherit from "gnome" the emblems in 
~/.icons/gnome/48x48/emblems would not be picked up, and this is where the 
custom emblem install in nautilus places them...

This needs some thought.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a lounge-singing chivalrous romance novelist on the edge. She's a 
vivacious goth socialite trying to make a difference in a man's world. They 
fight crime! 




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