mojira.dev
MCL-19889

Launcher breaks mod microphone compatibility on MacOS >10.14

Currently the Minecraft launcher defines no microphone permission string in the launcher Info.plist file and no entitlement for microphone permission

and while this does not affect the vanilla gameplay it does affect modded
specifically

https://www.curseforge.com/minecraft/mc-mods/simple-voice-chat/

the mod is unable to obtain permission for the microphone on macos > 10.14
if permissions is directly requested via the system API the operating system will force close Minecraft with exit code -6 as it does not have access to the microphone

as such I suggest that the launcher adds something along the lines of

<key>NSMicrophoneUsageDescription</key>
<string>A Minecraft mod is requesting access to the microphone</string>

To the Info.plist file

I tested this change by resigning the launcher with the following entitlements file and a self-signed developer certificate

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.device.microphone</key>
<true/>
</dict>
</plist>

and the mod was able to correctly obtain microphone permissions by showing the system microphone access popup

Linked issues

Comments 0

No comments.

BreadLoaf

(Unassigned)

Confirmed

Retrieved