diff --git a/resources/packaging/macos/wrapper.sh b/resources/packaging/macos/wrapper.sh index d8cfcc5db..039d4ef45 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 -P)" +SNIFFNET_PATH="$SCRIPT_DIR/sniffnet" +osascript -e "do shell script \"'$SNIFFNET_PATH' >/dev/null 2>&1 &\" with prompt \"Comfortably monitor your Internet traffic.\" with administrator privileges"