Stephan Kulow wrote:
Am Mittwoch 27 Mai 2009 schrieb Pavol Rusnak:
Vahis wrote:
Yes. A simple cron job is sufficient for this. I experienced that FF needs to be shut down before vacuuming. The database will be locked when FF runs. Wouldn't this be tricky in a cron job? You could detect if firefox (or any other application) is running and skip the associated files (for this cron run).
I guess it would be easier to do it in the /usr/bin/firefox wrapper script when firefox exited. you still want to check no other instance is running, but that should be easy _there_.
cron jobs for single users are a bit problematic.
Very good point. Actually all applications that I handle in my script have wrappers in /usr/bin and are not called directly: * Banshee * Evolution * F-Spot * Mozilla Firefox * Mozilla Thunderbird We could patch these wrappers to take care of vacuuming the DB at application exit (or at N-th exit, or storing the date of the last vacuum and check if it's older than N days). What do you think? -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org