Re: Script to Clean Up Orphans



Thanks Jean. I updated that so it actually uses a variable for the
dbpath, and cleaned up a couple other things as well.

The latest version is here:
http://michaeljaylissner.com/blog/script-to-cleanup-fspot-database

Michael Lissner
mlissner michaeljaylissner com
909-576-4123





Jean Levasseur wrote on 10/17/2009 10:12 AM:
> 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
>>     
>
>   
begin:vcard
fn:Michael Lissner
n:Lissner;Michael
email;internet:mlissner michaeljaylissner com
tel;cell:909-576-4123
x-mozilla-html:TRUE
version:2.1
end:vcard



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