Skip to content

Commit 6078d09

Browse files
committed
docs(daemon): document unreadable plist tradeoff
1 parent aa4ee5f commit 6078d09

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/daemon/launchd-system.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ if [ -z "$openclaw_system_launchd_conflict" ]; then
7171
if openclaw_system_launchd_entries=$(/usr/bin/mktemp "\${TMPDIR:-/tmp}/openclaw-launchd-scan.XXXXXX" 2>&1); then
7272
if /usr/bin/find "$openclaw_system_launchd_dir" -mindepth 1 -maxdepth 1 -name '*.plist' -print0 >"$openclaw_system_launchd_entries"; then
7373
while IFS= read -r -d '' openclaw_system_launchd_plist; do
74-
# Unreadable plists are foreign; the bracketing launchctl probes catch loaded same-label daemons.
74+
# Unreadable plists are treated as foreign: loaded same-label daemons are caught by the
75+
# bracketing launchctl probes; an unloaded unreadable same-label plist is an accepted operator-created edge (#120481).
7576
if [ ! -r "$openclaw_system_launchd_plist" ]; then
7677
continue
7778
fi
@@ -187,7 +188,8 @@ async function findInstalledSystemLaunchDaemon(
187188
if (result.status === "ok" && result.label === label) {
188189
return { status: "installed", plistPath };
189190
}
190-
// Unreadable plists are foreign; bracketing launchctl probes catch loaded same-label daemons.
191+
// Unreadable plists are treated as foreign: loaded same-label daemons are caught by the
192+
// bracketing launchctl probes; an unloaded unreadable same-label plist is an accepted operator-created edge (#120481).
191193
if (result.status === "unreadable") {
192194
continue;
193195
}

0 commit comments

Comments
 (0)