Created
July 25, 2026 14:30
-
-
Save raytiley/9372249a0abe5f8ac12e2a084dc5de5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Creates a Desktop launcher for Minecraft that can request mic access properly. | |
| set -e | |
| DEST="$HOME/Desktop/Minecraft (voice).command" | |
| for candidate in \ | |
| "/Applications/Minecraft.app/Contents/MacOS/launcher" \ | |
| "/Applications/Prism Launcher.app/Contents/MacOS/prismlauncher" \ | |
| "/Applications/Modrinth App.app/Contents/MacOS/Modrinth App" \ | |
| "/Applications/MultiMC.app/Contents/MacOS/MultiMC" | |
| do | |
| [ -x "$candidate" ] && LAUNCHER="$candidate" && break | |
| done | |
| if [ -z "$LAUNCHER" ]; then | |
| echo "No Minecraft launcher found in /Applications." >&2 | |
| exit 1 | |
| fi | |
| cat > "$DEST" <<EOF | |
| #!/bin/sh | |
| exec "$LAUNCHER" | |
| EOF | |
| chmod +x "$DEST" | |
| echo "Created: $DEST" | |
| echo "Double-click it, join a world, and allow the mic when asked." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment