Skip to content

fix: use absolute path for networksetup binary on macOS - #2309

Merged
m3nu merged 1 commit into
borgbase:masterfrom
m3nu:issue/2306
Dec 10, 2025
Merged

fix: use absolute path for networksetup binary on macOS#2309
m3nu merged 1 commit into
borgbase:masterfrom
m3nu:issue/2306

Conversation

@m3nu

@m3nu m3nu commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

The PATH environment variable from LSEnvironment in the bundled .app is not reliably inherited by subprocesses. Use /usr/sbin/networksetup consistently and handle FileNotFoundError to prevent crashes when the binary is not found. Return sensible defaults on failure so the app continues working.

Fixes #2306

The PATH environment variable from LSEnvironment in the bundled .app
is not reliably inherited by subprocesses. Use /usr/sbin/networksetup
consistently and handle FileNotFoundError to prevent crashes when the
binary is not found. Return sensible defaults on failure so the app
continues working.
@m3nu
m3nu merged commit 8a289d5 into borgbase:master Dec 10, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant