Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
39 lines
1.9 KiB
XML
Executable File
39 lines
1.9 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<!-- Shared keychain group so the credentials survive the CUTOVER bundle-id
|
|
flip (.native -> fi.RedLintu16.CrossSound): without it, items sit in
|
|
the DEFAULT group, which is derived from the bundle id, and renaming
|
|
the app orphans the login. $(AppIdentifierPrefix) is the team prefix
|
|
Xcode substitutes at build time. Keychain.swift writes here. -->
|
|
<key>keychain-access-groups</key>
|
|
<array>
|
|
<string>$(AppIdentifierPrefix)fi.RedLintu16.CrossSound</string>
|
|
</array>
|
|
|
|
<!-- NO App Sandbox, deliberately. Do not re-add it without reading this.
|
|
|
|
Discord Rich Presence talks to the client over a UNIX socket at
|
|
$TMPDIR/discord-ipc-{0..9}. Sandboxed, that fails twice over:
|
|
1. NSTemporaryDirectory()/TMPDIR resolve to the app's CONTAINER tmp
|
|
(~/Library/Containers/<id>/Data/tmp), while Discord's socket lives
|
|
in the real per-user temp dir (/var/folders/<hash>/T/) — so there is
|
|
nothing to find; and
|
|
2. even with the right path, the sandbox forbids connecting to a UNIX
|
|
socket outside the container. The only lever is a
|
|
temporary-exception on /var/folders, whose <hash> is per-user and
|
|
unknowable at build time.
|
|
This is why Discord RPC cannot work in ANY sandboxed / Mac App Store app.
|
|
|
|
Dropping it is viable here: the app is self-distributed and was never App
|
|
Store material (local HTTP API on 52124/8963, Widevine/FairPlay).
|
|
Notarization does NOT require the sandbox — only the App Store does — so
|
|
Gatekeeper is unaffected.
|
|
|
|
Removed alongside it were com.apple.security.network.client and
|
|
.network.server, which are sandbox-only permissions and no-ops without
|
|
it. Restore all three together, or none. -->
|
|
</dict>
|
|
</plist>
|