About the Syncing of the extensions folder |
October, 05, 2003 6:59 AM |
gchron |
I think that the job could be more easily. Why not to test the modified date from the extensions.mkext or Extension folder??? I think that this could be done only during boot and at every boot. When something is installed the modification date of the folder changes and after a restart a new extension.mkext is generated so its date is also changed. So we could just have to do two boots in order to update the extensions. or read the extensions folder during shutdown. I do not know if there is a shut down items in X but when I close the system from the verbose mode (I press the apple v during startup) there are some processes that the system runs before the system shuts down as to spin down disks CPU halt etc. I think that if we can change this we actually can change stuff in the system without having the stop the shut down process. Just an idea. What do you think ryan??? |
. |
RE: About the Syncing of the extensions folder |
October, 05, 2003 6:23 PM |
OSXGuru |
. |
I have thought (briefly) about doing the test for changes at startup time, rather than shutdown time. The idea would be to test for changes, copy the changes if necessary, and then restart the machine (again, if necessary). Doing it that way would have some advantages. The problem is that you would have mismatched system files at the initial restart, and the results of that are a little unpredictable. To some extent, it might be OK if you sync and restart soon, but I'd rather have a solution that is more "provably" correct. As for doing things at shutdown time, that would really be ideal, of course. But there are a variety of obstacles in the way--basically, there is no good way of inserting yourself into the shutdown process (I've tried). There are some awful hacks that one could try (like replacing /sbin/shutdown with something of my own devising), but they have some philosophical and practical problems of their own. Anyway, I think I've got an approach that works reasonably well now--I'll test it tonight and tomorrow and see. |
|
|