From f47fa6bdca465de34d67bf2105e3b7e918e5a5f7 Mon Sep 17 00:00:00 2001 From: Trivenzaa-Admin Date: Fri, 8 May 2026 01:48:52 -0700 Subject: [PATCH] fix(macos): add NSScreenCaptureUsageDescription and screen-capture entitlement Without NSScreenCaptureUsageDescription in Info.plist, macOS silently blocks desktopCapturer.getSources(), breaking window detection on macOS 10.15+. Also adds the com.apple.security.device.screen-capture entitlement to macos.entitlements alongside the existing camera and audio-input entries. Fixes #548 --- electron-builder.json5 | 1 + macos.entitlements | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/electron-builder.json5 b/electron-builder.json5 index ad6cd18..d9fee6b 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -51,6 +51,7 @@ "NSAudioCaptureUsageDescription": "OpenScreen needs audio capture permission to record system audio.", "NSMicrophoneUsageDescription": "OpenScreen needs microphone access to record voice audio.", "NSCameraUsageDescription": "OpenScreen needs camera access to record webcam video.", + "NSScreenCaptureUsageDescription": "OpenScreen needs screen recording permission to detect and capture windows.", "NSCameraUseContinuityCameraDeviceType": true, "com.apple.security.device.audio-input": true } diff --git a/macos.entitlements b/macos.entitlements index 5c6ddcf..38d8b29 100644 --- a/macos.entitlements +++ b/macos.entitlements @@ -21,5 +21,9 @@ com.apple.security.device.camera + + + com.apple.security.device.screen-capture +