[vlc-commits] macosx: Add explanatory strings for access to restricted resources
David Fuhrmann
git at videolan.org
Mon Oct 19 19:19:32 CEST 2020
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Oct 17 13:15:10 2020 +0200| [f1534626c69952d3b24de51c6468ad56337c3c14] | committer: David Fuhrmann
macosx: Add explanatory strings for access to restricted resources
Those strings are read directly by the mac OS to show some reason
in ressource request dialogs.
The strings for NSAppleEventsUsageDescription, NSCameraUsageDescription
and NSMicrophoneUsageDescription are mandatory, otherwise the
application will crash.
InfoPlist.strings needs to be translated to show localized variants
of those strings.
refs #21378
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1534626c69952d3b24de51c6468ad56337c3c14
---
modules/gui/macosx/Resources/InfoPlist.strings | 11 ++++++++---
share/Info.plist.in | 16 +++++++++++++---
2 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/modules/gui/macosx/Resources/InfoPlist.strings b/modules/gui/macosx/Resources/InfoPlist.strings
index 2f109b7715..ba5bf4a29f 100644
--- a/modules/gui/macosx/Resources/InfoPlist.strings
+++ b/modules/gui/macosx/Resources/InfoPlist.strings
@@ -1,5 +1,10 @@
/* Localized versions of Info.plist keys */
-"NSCameraUsageDescription" = "VLC uses the camera to record some video.";
-"NSMicrophoneUsageDescription" = "VLC uses the microphone to record some audio.";
-"NSAppleEventsUsageDescription" = "VLC uses apple events to control external media players.";
+"NSCameraUsageDescription" = "VLC wants to access the camera as requested by the user.";
+"NSMicrophoneUsageDescription" = "VLC wants to access the microphone as requested by the user.";
+"NSAppleEventsUsageDescription" = "VLC wants to pause and resume external media players.";
+"NSDesktopFolderUsageDescription" = "VLC wants to access the desktop folder as requested by the user.";
+"NSDocumentsFolderUsageDescription" = "VLC wants to access the documents folder as requested by the user.";
+"NSDownloadsFolderUsageDescription" = "VLC wants to access the downloads folder as requested by the user.";
+"NSNetworkVolumesUsageDescription" = "VLC wants to access a network volume as requested by the user.";
+"NSRemovableVolumesUsageDescription" = "VLC wants to access a removable volume as requested by the user.";
diff --git a/share/Info.plist.in b/share/Info.plist.in
index d106a87b6d..68f288aba2 100644
--- a/share/Info.plist.in
+++ b/share/Info.plist.in
@@ -62,11 +62,21 @@
<key>NSHumanReadableCopyright</key>
<string>Copyright (c) @COPYRIGHT_YEARS@ VLC authors and VideoLAN</string>
<key>NSCameraUsageDescription</key>
- <string>VLC uses the camera to record some video.</string>
+ <string>VLC wants to access the camera as requested by the user.</string>
<key>NSMicrophoneUsageDescription</key>
- <string>VLC uses the microphone to record some audio.</string>
+ <string>VLC wants to access the microphone as requested by the user.</string>
<key>NSAppleEventsUsageDescription</key>
- <string>VLC uses apple events to control external media players.</string>
+ <string>VLC wants to pause and resume external media players.</string>
+ <key>NSDesktopFolderUsageDescription</key>
+ <string>VLC wants to access the desktop folder as requested by the user.</string>
+ <key>NSDocumentsFolderUsageDescription</key>
+ <string>VLC wants to access the documents folder as requested by the user.</string>
+ <key>NSDownloadsFolderUsageDescription</key>
+ <string>VLC wants to access the downloads folder as requested by the user.</string>
+ <key>NSNetworkVolumesUsageDescription</key>
+ <string>VLC wants to access a network volume as requested by the user.</string>
+ <key>NSRemovableVolumesUsageDescription</key>
+ <string>VLC wants to access a removable volume as requested by the user.</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
More information about the vlc-commits
mailing list