Reading through all the comments - it seems to me that there are two problems to tackle:
1) Determine which files are interesting for the user - this can be done with the Taskview API
2) Keep track of these files - this must be done with inotify, as there are many programs which don't notify anybody about file changes. (e.g mv, batch-renamer, ...). There is still the problem of "offline" (we are not running) changes, but I don't see any solution except scanning the whole filesystems, which is also very suboptimal.
Of course there is a bit redundancy between 1 and 2 (e.g. move already known files with nautilus) and must be filtered out.
Reading through all the comments - it seems to me that there are two problems to tackle:
1) Determine which files are interesting for the user - this can be done with the Taskview API
2) Keep track of these files - this must be done with inotify, as there are many programs which don't notify anybody about file changes. (e.g mv, batch-renamer, ...). There is still the problem of "offline" (we are not running) changes, but I don't see any solution except scanning the whole filesystems, which is also very suboptimal.
Of course there is a bit redundancy between 1 and 2 (e.g. move already known files with nautilus) and must be filtered out.