Merge pull request #948 from InfraWhisperer/use_relative_path_instead_of_absolute_path

fix wrapper script to use relative path on macos
This commit is contained in:
Giuliano Bellini
2025-09-20 19:23:21 +02:00
committed by GitHub

View File

@@ -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"