Add descriptions for camera and microphone usage on macos

Starting from macOS 10.14, users need to grant permissions for applications to use media capture (camera and microphone).

The application *must* provide a description in its Info.plist or it will be terminated due to privacy violation upon attempting to initialize camera/microphone.

Ideally these two strings should be translated, but since this is not really compatible with Qt's localization system and likely requires separate configuration, I'm currently not that interested in messing with it.
This commit is contained in:
zhupengfei 2020-10-01 11:58:47 +08:00 committed by Vitor Kiguchi
parent 6e16081b6a
commit e6e6f4fbe1

View File

@ -36,5 +36,9 @@
<string>NSApplication</string> <string>NSApplication</string>
<key>NSHighResolutionCapable</key> <key>NSHighResolutionCapable</key>
<string>True</string> <string>True</string>
<key>NSCameraUsageDescription</key>
<string>This app requires camera access to emulate the 3DS's cameras.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app requires microphone access to emulate the 3DS's microphone.</string>
</dict> </dict>
</plist> </plist>