<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/66eff747a7221f7cb9db801b7a3127510dd61149">https://github.com/macports/macports-ports/commit/66eff747a7221f7cb9db801b7a3127510dd61149</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 66eff747a7221f7cb9db801b7a3127510dd61149
</span>Author: Davide Gerhard <rainbow@irh.it>
AuthorDate: Thu Sep 19 08:28:09 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> app-1.0.tcl: add app.privacy_camera
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Allows ports to enable camera access.
</span><span style='display:block; white-space:pre;color:#404040;'> This is needed from macOS 10.14.
</span>---
_resources/port1.0/group/app-1.0.tcl | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/app-1.0.tcl b/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 124007c..6610a13 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -137,6 +137,18 @@ default app.retina no
</span> options app.privacy_microphone
default app.privacy_microphone ""
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# app.privacy_camera: whether the app needs camera access
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The default is empty and therefore disabled. To enable write a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# message that tells the user why the app is requesting access to the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# device’s camera.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Info.plist key NSCameraUsageDescription.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options app.privacy_camera
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default app.privacy_camera ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # app.hide_dock_icon: hide the Dock icon
#
# SDKs like SDL and Qt use the necessary macOS APIs to implement proper Dock
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -289,6 +301,10 @@ platform macosx {
</span> puts ${fp} " <key>NSMicrophoneUsageDescription</key>
<string>${app.privacy_microphone}</string>"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${app.privacy_camera} != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${fp} " <key>NSCameraUsageDescription</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>${app.privacy_camera}</string>"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> if {[tbool app.hide_dock_icon]} {
puts ${fp} " <key>LSUIElement</key>
<true/>"
</pre><pre style='margin:0'>
</pre>