This is a proof-of-concept patch which integrates file system monitoring
into file space. The idea is to perform automatic file list refresh when
creating / deleting files outside of Blender. Currently only covers Linux
with the following TODOs and limitations:
- Naming is a bit weird, it's nothing to do with X11, it's using INotify from Linux so some classes are to be renamed.
- Only CMake is hoked up
- It is actually forced ON in CMake, need to become a build system option.
- Only single file browser works reliably
This is due to inotify limitation which doesn't let to monitor directories recursively. So each file space would need to tell GHOST that it wants to monitor some directory. Doable, but not for initial patch.
- File space is not refreshed immediately, Blender window needs to gain focus back in order to perform list refresh.
All in all, before moving forward let's gather some feedback about whether
we want this and if we do, whether we can do something different here.