Skip to content

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

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

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

Conversation

@m3nu
Copy link
Contributor

@m3nu m3nu commented Dec 9, 2025

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fatal Error on "Start Backup" after self-update to 0.11.0

1 participant