Skip to content

Commit

Permalink
WezTerm.app/Contents/Info.plist: request network permissions
Browse files Browse the repository at this point in the history
On MacOS 15 (Sequoia) and later,
Wezterm.app should ask for a LocalNetwork entitlement by default.

This fixes mysterious network failures (eg: 'no route to host') when:

- Wezterm is a toplevel process (ie: not a child of a process
  that already has LocalNetwork entitlement, like Terminal)
- A shell running inside Wezterm executes a process which accesses the network,
  but does not itself already have a LocalNetwork entitlement,
  eg: /etc/profiles/per-user/$(whoami)/bin/ssh
  for ssh installed by nix home-manager.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
  • Loading branch information
siriobalmelli committed Oct 21, 2024
1 parent 9f48276 commit 8e472a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/macos/WezTerm.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
<string>An application launched via WezTerm would like to access your Downloads folder.</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>An application launched via WezTerm requires elevated permission.</string>
<key>NSLocalNetworkUsageDescription</key>
<string>An application launched via WezTerm would like to access the local network.</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
Expand Down

0 comments on commit 8e472a9

Please sign in to comment.