Last active
December 17, 2015 10:29
-
-
Save akorobov/5595618 to your computer and use it in GitHub Desktop.
Prevent iTunes from launching when using pause/plain/next/prev keysThis works in OS X 10.8.4+
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
sudo cp /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd.orig | |
# make sure replace with equal number of spaces(we're patching executable binary) | |
sudo perl -pi -e 's#tell application id "com.apple.iTunes" to launch# #g' /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd | |
# sign new binary | |
sudo codesign -f -s - /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd | |
# restart | |
killall -9 rcd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment