Last active
August 11, 2022 00:25
-
-
Save Cosmo/6f509485eb1a9d5721b6d2a0a5d70de5 to your computer and use it in GitHub Desktop.
Disable GPU usage for Microsoft Teams
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
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