Skip to content

Remove WatchPaths from launch daemon#130

Merged
grahamgilbert merged 1 commit into
grahamgilbert:masterfrom
aysiu:patch-4
May 15, 2026
Merged

Remove WatchPaths from launch daemon#130
grahamgilbert merged 1 commit into
grahamgilbert:masterfrom
aysiu:patch-4

Conversation

@aysiu
Copy link
Copy Markdown
Contributor

@aysiu aysiu commented Nov 21, 2025

From man launchd.plist:

     WatchPaths <array of strings>
     This optional key causes the job to be started if any one of the listed
     paths are modified.

     IMPORTANT: Use of this key is highly discouraged, as filesystem event
     monitoring is highly race-prone, and it is entirely possible for
     modifications to be missed. When modifications are caught, there is no
     guarantee that the file will be in a consistent state when the job is
     launched.

This section being removed doesn't seem to impede Crypt's operation (in fact, it may help address https://github.com/grahamgilbert/crypt/issues/128—can't be 100% sure on that, though).

From `man launchd.plist`:
```
     WatchPaths <array of strings>
     This optional key causes the job to be started if any one of the listed
     paths are modified.

     IMPORTANT: Use of this key is highly discouraged, as filesystem event
     monitoring is highly race-prone, and it is entirely possible for
     modifications to be missed. When modifications are caught, there is no
     guarantee that the file will be in a consistent state when the job is
     launched.
```
This section being removed doesn't seem to impede Crypt's operation (in fact, it may help).
@grahamgilbert grahamgilbert merged commit 29c65a1 into grahamgilbert:master May 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants