Keep an LRU cache[1] of inotify watches (or GFileMonitors more likely) on the last 350 used files. Log some relevant event when they change.
This could be done either from an extension or a DP. The tricky part os probably making sure that we don't log a lot of dupe entries (I'm not sure the DataSourceRegistry is enough here). [1]: Reviving my old impl from the bzr history would probably be sanest - there are some very bad Python lru cache implementations floating the interwebs. Caveat emptor. _______________________________________________ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp