summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2022-06-26 10:31:54 -0700
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2022-06-26 13:25:51 -0700
commit419fbf639d8f53d39449c157a9554bd5482ed64f (patch)
tree0dab649dd15f1205eb91fd1602b2258ecaae1a74
parent66ac50090dd191f1b16daf338ca3b46d9147fbbd (diff)
XQuartz: Add TCC reason keys to Info.plist
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> (cherry picked from commit 9ce7264889e36fddbdf6bac332225ad6f628ad5d)
-rw-r--r--hw/xquartz/bundle/Info.plist.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/hw/xquartz/bundle/Info.plist.cpp b/hw/xquartz/bundle/Info.plist.cpp
index 323dec205..7cb59ea77 100644
--- a/hw/xquartz/bundle/Info.plist.cpp
+++ b/hw/xquartz/bundle/Info.plist.cpp
@@ -28,6 +28,31 @@
<true/>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
+
+ <!-- Add generic usage descriptions for TCC
+ https://github.com/XQuartz/XQuartz/issues/245
+ -->
+ <key>NSAppleEventsUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants to use AppleScript.</string>
+ <key>NSCalendarsUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your calendar data.</string>
+ <key>NSCameraUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your camera.</string>
+ <key>NSContactsUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your contacts.</string>
+ <key>NSLocationAlwaysUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your location information, even when not in use.</string>
+ <key>NSLocationUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your location information.</string>
+ <key>NSLocationWhenInUseUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your location information when in use.</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your microphone.</string>
+ <key>NSRemindersUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants access to your reminders.</string>
+ <key>NSSystemAdministrationUsageDescription</key>
+ <string>A process launched by APPLE_APPLICATION_NAME wants admin privileges.</string>
+
#ifdef XQUARTZ_SPARKLE
<key>SUEnableAutomaticChecks</key>
<true/>