On Wed, May 27, 2009 at 3:08 PM, Pavol Rusnak
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?
Is it okay for multiple rpms to patch a single file ? (I know it is okay for something like /etc/pam.d/gdm) I am not sure if there are any packaging guidelines against such practices. i.e., our vacuumizer will patch /usr/bin/firefox which is owned by someother package, FireFox. If it is okay, then patching the wrappers to update on every Nth access may be the smartest fix to speedup things. In this way, you don't have to vacuumize the db-s of applications that you may never use. For instance, if someone is happy with his mutt+fetchmail, he need not worry about a new vacuumizer grinding the disk searching for 'folders.db' under ~/.evolution. Vahis, I felt a gui application may be useful to warn users if the applications are open and I started the project with that aim only (in addition to learn a few things ;)) . You are correct, it may be tricky to get these alerts to users in a easy way, if we scriptify things. But the wrapper approach suggested by Pavol will solve all the problems (apart from me wanting to learn GTK#, packaging, icon usage etc. ;) ) -- Sankar P http://psankar.blogspot.com -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org