forked from qt-creator/qt-creator
macOS 10.14: Allow user applications to request access to services
In macOS Mojave applications have to provide information about the reason they want to access certain services (Camera, Microphone, etc). If they do not provide this information in their Info.plist, they possibly are even killed by the system. For direct child processes, like user applications are when started from Qt Creator, this information is taken from the parent application, i.e. Qt Creator, even if the child process provides the information in it's own Info.plist. Fixes: QTCREATORBUG-21887 Change-Id: I1bc149fea928a26d59d126f6b1be71649a4369ed Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -254,5 +254,23 @@
|
|||||||
<string>@SHORT_VERSION@</string>
|
<string>@SHORT_VERSION@</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>@MACOSX_DEPLOYMENT_TARGET@</string>
|
<string>@MACOSX_DEPLOYMENT_TARGET@</string>
|
||||||
</dict>
|
<key>NSAppleEventsUsageDescription</key>
|
||||||
</plist>
|
<string>This application wants to run AppleScript.</string>
|
||||||
|
<key>NSBluetoothPeripheralUsageDescription</key>
|
||||||
|
<string>A user application wants to access bluetooth.</string>
|
||||||
|
<key>NSCalendarsUsageDescription</key>
|
||||||
|
<string>A user application wants to access calendars.</string>
|
||||||
|
<key>NSCameraUsageDescription</key>
|
||||||
|
<string>A user application wants to access the camera.</string>
|
||||||
|
<key>NSContactsUsageDescription</key>
|
||||||
|
<string>A user application wants to access contacts.</string>
|
||||||
|
<key>NSLocationWhenInUseUsageDescription</key>
|
||||||
|
<string>A user application wants to access location information.</string>
|
||||||
|
<key>NSMicrophoneUsageDescription</key>
|
||||||
|
<string>A user application wants to access the microphone.</string>
|
||||||
|
<key>NSPhotoLibraryAddUsageDescription</key>
|
||||||
|
<string>A user application wants write access to the photo library.</string>
|
||||||
|
<key>NSPhotoLibraryUsageDescription</key>
|
||||||
|
<string>A user application wants to access the photo library.</string>
|
||||||
|
<key>NSRemindersUsageDescription</key>
|
||||||
|
<string>A user application wants to access the reminders.</string>
|
||||||
|
Reference in New Issue
Block a user