summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-01-30 14:46:16 +0100
committerEike Ziller <eike.ziller@qt.io>2019-02-04 14:23:34 +0000
commitdd0156d1facc5422464dc1b430696a0b63db605f (patch)
tree6689d387f8d5a9aad0d9eb47c0cf5463e3030fc3
parenta7bbcb8e398aaeafca72a3646ed4f20574f856af (diff)
downloadqt-creator-dd0156d1facc5422464dc1b430696a0b63db605f.tar.gz
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>
-rw-r--r--src/app/app-Info.plist22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/app/app-Info.plist b/src/app/app-Info.plist
index 91104f163d..d87130d5e4 100644
--- a/src/app/app-Info.plist
+++ b/src/app/app-Info.plist
@@ -254,5 +254,23 @@
<string>@SHORT_VERSION@</string>
<key>LSMinimumSystemVersion</key>
<string>@MACOSX_DEPLOYMENT_TARGET@</string>
-</dict>
-</plist>
+ <key>NSAppleEventsUsageDescription</key>
+ <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>