Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(macos): add NSScreenCaptureUsageDescription and screen-capture entitlement

Trivenzaa-Adminf47fa6bdca46
diff --git a/electron-builder.json5 b/electron-builder.json5
index ad6cd1853..d9fee6b98 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 5c6ddcf17..38d8b291f 100644
--- a/macos.entitlements
+++ b/macos.entitlements
@@ -21,5 +21,9 @@
<!-- Camera (webcam capture) -->
<key>com.apple.security.device.camera</key>
<true/>
+
+ <!-- Screen recording (required for desktopCapturer.getSources() on macOS 10.15+) -->
+ <key>com.apple.security.device.screen-capture</key>
+ <true/>
</dict>
</plist>