From 2782b750aee9194627eb3db3776005a136c51568 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 15 Jun 2021 15:22:26 +0200 Subject: scripts: Add bluetooth permission for macOS Apple documentation claims this is for iOS/watchOS/tvOS only: https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription However, reality tells a different story - according to Console.app, when visiting accounts.google.com, qutebrowser/Chromium needs this permission. Reproducible as well using the following demo page: https://googlechrome.github.io/samples/web-bluetooth/battery-level.html Finally, Google Chrome has the key declared as well. Note that it has NSBluetoothPeripheralUsageDescription as well: https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothperipheralusagedescription ...but that is deprecated, and according to my tests on macOS 10.14 and 10.15, it's not needed. Thanks to Apple for their wonderful documentation.... not. Fixes #6475, hopefully for real this time. --- scripts/dev/build_release.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 2ca97de11..a1c6646eb 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -285,6 +285,8 @@ INFO_PLIST_UPDATES = { 'A website in qutebrowser wants to use your location information.', 'NSMicrophoneUsageDescription': 'A website in qutebrowser wants to use your microphone.', + 'NSBluetoothAlwaysUsageDescription': + 'A website in qutebrowser wants to access Bluetooth.', } -- cgit v1.2.3-54-g00ecf