From bea605f9309c68666086a53496be0d874057512b Mon Sep 17 00:00:00 2001 From: Panth Patel Date: Sat, 26 Sep 2026 15:36:49 +0530 Subject: [PATCH 1/2] Fix quarantined LaunchDaemon installation --- gui/Scripts/install-helper.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/Scripts/install-helper.sh b/gui/Scripts/install-helper.sh index 18a9789..6cc94c0 100755 --- a/gui/Scripts/install-helper.sh +++ b/gui/Scripts/install-helper.sh @@ -84,6 +84,11 @@ find "${TOOLS_DIR}" -maxdepth 1 -name '*.dylib' -type f -exec chmod 444 {} + log "Installing ${PLIST_PATH}" cp "${SOURCE_DIR}/${LABEL}.plist" "${PLIST_PATH}" + +# launchd refuses quarantined LaunchDaemon plists on macOS. +# Remove quarantine metadata before registering the service. +xattr -d com.apple.quarantine "${PLIST_PATH}" 2>/dev/null || true + chown root:wheel "${PLIST_PATH}" chmod 644 "${PLIST_PATH}" From edce121d85ed2a78d47956ae3fa07e16f0a4451b Mon Sep 17 00:00:00 2001 From: Justin <159104807+Justin24506@users.noreply.github.com> Date: Sat, 21 Nov 2026 16:48:39 +0530 Subject: [PATCH 2/2] docs(install): justify stripping only the plist --- gui/Scripts/install-helper.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gui/Scripts/install-helper.sh b/gui/Scripts/install-helper.sh index 6cc94c0..8ac86e0 100755 --- a/gui/Scripts/install-helper.sh +++ b/gui/Scripts/install-helper.sh @@ -85,8 +85,15 @@ find "${TOOLS_DIR}" -maxdepth 1 -name '*.dylib' -type f -exec chmod 444 {} + log "Installing ${PLIST_PATH}" cp "${SOURCE_DIR}/${LABEL}.plist" "${PLIST_PATH}" -# launchd refuses quarantined LaunchDaemon plists on macOS. -# Remove quarantine metadata before registering the service. +# On macOS 27 launchd refuses LaunchDaemon plists that carry +# com.apple.quarantine, per release note 166415497, and logs error 155: +# "Refusing to execute/trust quarantined program/file". Extracting a +# downloaded zip stamps the attribute on every file inside it, and cp +# preserves extended attributes, so the plist reaches the install directory +# still quarantined even when the app was opened via the Gatekeeper prompt. +# Strip only the plist. The program and dylibs keep their attribute and +# launchd still starts the program. When the attribute is absent xattr +# exits non-zero and `|| true` keeps the script running. xattr -d com.apple.quarantine "${PLIST_PATH}" 2>/dev/null || true chown root:wheel "${PLIST_PATH}"