Skip to content

Instantly share code, notes, and snippets.

@Cosmo
Last active August 11, 2022 00:25
Show Gist options
  • Save Cosmo/6f509485eb1a9d5721b6d2a0a5d70de5 to your computer and use it in GitHub Desktop.
Save Cosmo/6f509485eb1a9d5721b6d2a0a5d70de5 to your computer and use it in GitHub Desktop.
Disable GPU usage for Microsoft Teams
APP=TeamsFixer
mkdir -vp ${APP}.app/Contents/MacOS ${APP}.app/Contents/Resources
PATH="$PATH:/usr/libexec"
printf '#!/usr/bin/env bash\nexec /Applications/Microsoft\ Teams.app/Contents/MacOS/Teams --disable-gpu' > ${APP}.app/Contents/MacOS/${APP}
chmod +x ${APP}.app/Contents/MacOS/${APP}
cp /Applications/Microsoft\ Teams.app/Contents/Resources/icon.icns ${APP}.app/Contents/Resources/icon.icns
PlistBuddy ${APP}.app/Contents/Info.plist -c "add CFBundleDisplayName string ${APP}"
PlistBuddy ${APP}.app/Contents/Info.plist -c "add CFBundleIconFile string icon.icns"
PlistBuddy ${APP}.app/Contents/version.plist -c "add ProjectName string ${APP}"
find ${APP}.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment