feat(desktop): add macOS screen-capture entitlement for getDisplayMedia (LC-137) #455
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/LC-137-macos-screen-share-entitlement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WKWebView gained getDisplayMedia in macOS 13. The WebKit-layer consent is auto-granted by wry's WryWebViewUIDelegate (same path as getUserMedia), so there is no Rust-side permission hook to install. Under Tauri's default hardened runtime a signed app still cannot reach display capture without the com.apple.security.device.screen-capture entitlement, so add a desktop/lets-chat.entitlements file carrying that key and reference it from tauri.conf.json bundle.macOS.entitlements. macOS then raises the Screen Recording (TCC) prompt automatically on first display-capture request and remembers it across launches (no Info.plist usage string controls that prompt).
The entitlement is inert until the codesign step on the macOS build path lands (LC-126, parked for lack of macOS hardware + Apple credentials), mirroring the declarative-provisioning approach used for the camera/microphone slice. LC-134 adds the camera and audio-input entitlements to the same file; if both land independently the keys should be unioned.
#LC-137