diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-05-25 14:25:59 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-05-25 15:26:00 +0200 |
commit | 419299d977b0287f28be4f7721c44e82612a391f (patch) | |
tree | 21f782880cd69c6fa3b6c601b97df839f57ddd7c | |
parent | f512a6769780b85571e4af2a4134b357be2ffd84 (diff) | |
download | qutebrowser-419299d977b0287f28be4f7721c44e82612a391f.tar.gz qutebrowser-419299d977b0287f28be4f7721c44e82612a391f.zip |
Set permission strings in Info.plist
Fixes #6475
(cherry picked from commit bae08ae3860997bc19e9c41b9c9301a56aaeb202)
-rwxr-xr-x | scripts/dev/build_release.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index be6492358..2ca97de11 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -269,7 +269,22 @@ INFO_PLIST_UPDATES = { "CFBundleTypeMIMETypes": ["text/xhtml"], "CFBundleTypeName": "XHTML document", "CFBundleTypeRole": "Viewer", - }] + }], + + # https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_macos + # + # Keys based on Google Chrome's .app, except Bluetooth keys which seem to + # be iOS-only. + # + # If we don't do this, we get a SIGABRT from macOS when those permissions + # are used, and even in some other situations (like logging into Google + # accounts)... + 'NSCameraUsageDescription': + 'A website in qutebrowser wants to use the camera.', + 'NSLocationUsageDescription': + 'A website in qutebrowser wants to use your location information.', + 'NSMicrophoneUsageDescription': + 'A website in qutebrowser wants to use your microphone.', } |