Created
March 25, 2014 07:27
-
-
Save sadbox/9756694 to your computer and use it in GitHub Desktop.
microsoft_sucks
This file contains 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/bash | |
# Stolen from http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macoutlook/office-for-mac-mavericks-high-performance-gpu/e1a6aff0-e36e-40ae-ab62-aa7e3e0c6b10 | |
# Enable for Lync | |
AppName="/Applications/Microsoft Lync.app" | |
defaults write "$AppName/Contents/Info.plist" "NSSupportsAutomaticGraphicsSwitching" -bool true | |
if [ $? -eq 0 ]; then | |
chmod 664 "$AppName/Contents/Info.plist" | |
# Code sign Lync again | |
codesign -f --verbose --deep -s - "$AppName/" | |
fi | |
# Enable for Outlook | |
AppName="/Applications/Microsoft Office 2011/Microsoft Outlook.app" | |
defaults write "$AppName/Contents/Info.plist" "NSSupportsAutomaticGraphicsSwitching" -bool true | |
if [ $? -eq 0 ]; then | |
# Code sign Lync again | |
chmod 664 "$AppName/Contents/Info.plist" | |
codesign -f --verbose --deep -s - "$AppName/" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment