Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created July 25, 2026 14:30
Show Gist options
  • Select an option

  • Save raytiley/9372249a0abe5f8ac12e2a084dc5de5b to your computer and use it in GitHub Desktop.

Select an option

Save raytiley/9372249a0abe5f8ac12e2a084dc5de5b to your computer and use it in GitHub Desktop.
#!/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