<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/91667a95d1301f959fb46214f9baba1a4c85fcf3">https://github.com/macports/macports-ports/commit/91667a95d1301f959fb46214f9baba1a4c85fcf3</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 91667a95d1301f959fb46214f9baba1a4c85fcf3
</span>Author: Davide Gerhard <rainbow@irh.it>
AuthorDate: Thu Sep 19 08:23:30 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> app-1.0.tcl: add app.privacy_microphone
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Allows ports to enable microphone 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 | 14 ++++++++++++++
1 file changed, 14 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 6cf2e42..124007c 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;'>@@ -126,6 +126,16 @@ proc app.get_default_identifier {} {
</span> options app.retina
default app.retina no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# app.privacy_microphone: whether the app needs microphone 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 microphone.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Info.plist key NSMicrophoneUsageDescription.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options app.privacy_microphone
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default app.privacy_microphone ""
</span>
# app.hide_dock_icon: hide the Dock icon
#
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -275,6 +285,10 @@ platform macosx {
</span> puts ${fp} " <key>NSHighResolutionCapable</key>
<true/>"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${app.privacy_microphone} != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${fp} " <key>NSMicrophoneUsageDescription</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>${app.privacy_microphone}</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>