Skip to content

Instantly share code, notes, and snippets.

@akorobov
Last active December 17, 2015 10:29
Show Gist options
  • Save akorobov/5595618 to your computer and use it in GitHub Desktop.
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+
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