From c0da1fa06f294bbc4b1e4e9fded665b829790ed6 Mon Sep 17 00:00:00 2001 From: Raghav Potluri Date: Sat, 30 Aug 2025 22:44:11 -0700 Subject: [PATCH] fix wrapper script to use relative path on macos Fixes: #898 --- resources/packaging/macos/wrapper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/packaging/macos/wrapper.sh b/resources/packaging/macos/wrapper.sh index d8cfcc5d..5c283ce0 100755 --- a/resources/packaging/macos/wrapper.sh +++ b/resources/packaging/macos/wrapper.sh @@ -1,2 +1,4 @@ #!/usr/bin/env zsh -osascript -e 'do shell script "/*/Sniffnet.app/Contents/MacOS/sniffnet >/dev/null 2>&1 &" with prompt "Comfortably monitor your Internet traffic." with administrator privileges' +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +SNIFFNET_PATH="$SCRIPT_DIR/sniffnet" +osascript -e "do shell script \"'$(realpath "$SNIFFNET_PATH")' >/dev/null 2>&1 &\" with prompt \"Comfortably monitor your Internet traffic.\" with administrator privileges"