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"