Re: where is emblem info stored ?



On Thu, 2003-01-23 at 18:49, 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
> > ?
> 
> Actually, if you take the emblem pngs from ~/.nautilus/emblems, rename 
> them foo.png -> emblem-foo.png and move them to 
> ~/.icons/gnome/48x48/emblems/ I think they will work. Could you test 
> this?

sorry, but I just now had the time to check this out:

cd ~/.nautilus/emblems
for i in *.png
do 
  cp -av "$i" ~/.icons/gnome/48x48/emblems/emblem-"$i"
done

for the themes I tried it works (Smokey-Blue, gnome, Crux).

However somehow the scaling seems to be wrong for larger images... so I
prefer the way to drag+drop all emblems into the emblems sidebar...

anyway, while this copies the emblems to the right location still the
keywords have to be adjusted.

S.




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