Re: Script to Clean Up Orphans



From first (and quick!) view, it looks good, but since the database has
moved from ~/.gnome2/f-spot to $XDG_CONFIG_DIR/f-spot/ (which is in 99%
of cases ~/.config/f-spot), I would test the presence of that path too.

- Foxmike.

Le mercredi 14 octobre 2009 à 00:27 -0700, Michael Lissner a écrit :
> Hi, I just wrote a script to clean up orphan entries in the f-spot
> database, and I wanted to see if I could get any feedback on it.
> 
> This was inspired by my use of f-spot yesterday, when browsing my photos
> within f-spot. At one point, it crashed because one of the files it was
> looking for had been (re)moved manually outside of f-spot. It surprised
> me that an orphan database entry would cause f-spot to crash, but I
> noticed that I had a lot of these photos and no easy way to fix the
> problem (and that f-spot was crashing a lot as a result).
> 
> So, I wrote the script that is attached, and also posted here:
> http://paste.ubuntu.com/292946/
> 
> Any feedback would be more than welcome. I tested it moments ago on my
> database, and it seems to have done the trick quite well.
> 
> Thanks,
> 
> _______________________________________________
> F-spot-list mailing list
> F-spot-list gnome org
> http://mail.gnome.org/mailman/listinfo/f-spot-list


Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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