Skip to main content
Watch config files with hasChanged polling or an inotify Watcher. Most Otter daemons poll the watcher FD next to Wayland.

Modification time check

Watcher

Event helpers match otter-utils inotify: isModified, isDeleted, isCreated, isMoved, isIgnored.

Imports and multiple paths

When using loadWithImports, result.paths lists every file touched. Watch all of them or watch directories that contain imported fragments.

Thread safety

Parsers are not thread-safe on the same buffer. Load once per file, then share the resulting struct read-only across threads.