Benches macOS

15

How to stop iTunes from launching when us…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi,

I love the media keys on my MacBook and Apple wireless keyboard for playing, pausing, changing tracks etc with iTunes, but there are other than can utilize the media keys, like Spotify for instance. However, if I have iTunes closed, when I hit the Play key, iTunes will automatically launch, and will intercept any subsequent presses of just the play/pause button. Is there a way to stop this annoying behavior? I haven't found anything in the Keyboard shortcut system pref.

thanks.

15 replies

Sign in or join Beachball Help to reply.

  1. 0

    JeremyCrabtree

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The culprit here is the Remote Control Daemon, it lives in

    /System/Library/CoreServices/rcd.app

    To simply disable it, open a terminal window and type

    sudo chmod a-x /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd

    killall -9 rcd

    To re-enable it,

    sudo chmod a+x /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd

    Then log out and back in. (I couldn't get iTunes to respond again without logging out and back in)

    you will now be able to use your media keys with any app you want. You won't be able to use them with iTunes, however. (odd, huh?) The problem appears, to me, to be that rcd uses AppleScript to communicate with the various Apple apps it controls (Quicktime Player, Quicktime PlayerX, DVDPlayer, Aperture, iPhoto, iTunes, and Keynote) (
    warning technical stuff to follow) If you view the strings contained in the executable you can see it explicitly launching iTunes

    strings /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd

    You will find the following, if you look for it,

    tell application id "com.apple.iTunes" to launch

    which is not present in the 10.5 version of rcd.app (yes, I checked)

    Just for giggles and grins I opened the executable (/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd) in a hex editor and munged the launch command above. I logged out, then logged back in. I can now use my media keys without autolaunching iTunes AND I can still use them with iTunes when it is open.

    In summary, someone at Apple deliberately altered the Remote Control Daemon to launch iTunes when using the play/pause button. It would be trivially easy for them to fix, either by disabling it or making it a configurable option.

  2. 0

    Michael Pitogo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    My temporary hack to stop it until Apple gives us a choice to disable this PITA feature.

    Paste this into Apple Script Editor, compile it make sure there are no errors and save it as an App. When launched it simply asks you to enable or disable iTunes from launching by changing the execute permission. It stops iTunes from launching and the only thing you get when the play/pause button is pressed is a dock bounce and a console error.

    display dialog "Do you want to enable or disable iTunes?" buttons {"Enable", "Disable"} default button 1

    if button returned of result is "Disable" then

    do shell script "chmod -x /Applications/iTunes.app" with administrator privileges

    else

    do shell script "chmod +x /Applications/iTunes.app" with administrator privileges

    end if

  3. 0

    critichu

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    there is another workaround

    go to Activity Monitor

    on the top-right search box, write "itunes"

    "itunes helper" should show up

    click on it, then click on "Quit Process" (top left)

    on the following dialog, press "Quit" (for some reason "Force Quit" didn't work for me)

    what it does in a nutshell:

    the application "itunes helper" is the one receiving the media button signal and then opens iTunes.

    kill "itunes helper" and the problem is solved.

  4. 0

    Classee

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    For (2) did you try bodhirocking solution?

    "Well since the rcd got corrupted or can't be launch because of codesigning issues, we can disable the launch request for the app using:

    launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

    I got this terminal command from: http://gavinroy.com/disabling-default-itunes-launch-behavior-with

    "

    This still works for me, even in Mavericks!

  5. 0

    brarss

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I don't know if you guys resolved this issue or not, but I found a solution: http://www.thebitguru.com/projects/iTunesPatch

    "This is a patch for removing the default OS X behavior of always starting iTunes when the play button on the keyboard is pressed. This feature can be useful for a lot of users, but it can also be annoying if you are using VLC or other similar programs that support the media keys.

    The

    Patch.command

    script will patch the Remote Control Daemon to prevent it from starting iTunes whenever you press the play button on the keyboard or an external remote control. This will only prevent iTunes from starting, all other functions (like play/pause while iTunes is running) will continue to work as before.

    Lastly, this program will backup the original file in case if you would like to restore the original functionality."

  6. 0

    erik.henriksson

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I did not get the rcd file chrisclock supplied to work on Yosemite10.10.2

    I managed to patch the 10.10.2 rcd to not launch iTunes. Enjoy!

    (Of course no guarantee that this works, use at your own risk!)

    https://www.dropbox.com/s/miqur8lq85l8ok4/rcd_noitunes.zip?dl=0

    unzip rcd_noitunes.zip

    sudo cp /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd ~/rcd_backup

    sudo mv rcd_noitunes/rcd /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd

    Otherwise if you want to do it yourself then replace the 'tell application id “com.apple.iTunes” to launch' string with zeroes and run 'sudo codesign -s - -f rcd' to fix the signature (as chrisclock previously posted). This works fine on 10.10.2 too.

    Next thing would be someone to modify the string so we can launch something else instead of itunes 🙂

  7. 0

    riptide_

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    iTunes Helper is removed from startup at the usual place.

    System Preferences>User & Groups>[your user identity]>Login Items

  8. 0

    rshankland

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This worked for me...

    * drag itunes out of your application folder into somewhere where you've got write access

    * open it up and open Contents/Info.plist.

    * change the line that says "bundle identifier" from com.apple.iTunes to read com.apple.screwyou or something equally as thoughtful.

    * drag it back into Applications

    * log out and back in

    If you update itunes it will overwrite info.plist so you have to do it all over again.

    Message was edited by: rshankland

  9. 0

    zenona

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    What I'm doing now is automatically launch Quicktime after logging in. With Quicktime open, the Play button doesn't launch iTunes, and since Quicktime doesn't have any file open by default, it doesn't do anything either.

    It's sad to have to do like that, but I'd rather have Quicktime open instead than iTunes. It looks less memory consuming and I need it more often than iTunes...

    Anyway, It would be nice to have this feature removed and go back to normality.

  10. 0

    vegardjo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hedenberg wrote:

    Best workarround now: Keep Quicktime open.

    But. From what I've heard, this really is an overridable feature in the API - Any piece of software can declare the use of the play/pause button to their own, so it wont open iTunes, or even start the song in iTunes if it's open. Exactly the way it works with both iTunes and Quicktime - one never overrides the other.

    I've not seen this confirmed, but it makes sense. The button clearly isn't bound by the operating system to call a method in iTunes. Perhaps we should all start by complaining to whatever piece of software we have the trouble with - like VLC or Spotify.

    Apparently this is not overridable, see the answer from a Spotify employee (where there's a quite angry thread on the problem):

    http://getsatisfaction.com/spotify/topics/macplay_pause_button_problem_itunes_spotify?utm_content=reply_link&utm_medium=email &utm_source=reply_notification#reply1622383

    specifically the third comment:

    +"It's a closed-source proprietary mechanism.+

    +For techies: it's most likely based on Mach messaging and not regular DNC, thus we would need to decompile QuickTimeX to make any sense of it but that would be committing an illegal act.+

    +This really is Apples problem and not something we can work around. You should file a bug report at
    http://radar.apple.com/ and/or speak your mind in their support forums ..."+

    I'll just add my voice here as well: Apple should fix this extremly annoying behaviour! and yes, I'll file a bug report as well.

    Message was edited by: vegardjo

  11. 0

    Sikantti

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi guys,

    This workaround might already be discussed here earlier, but here it is as a reminder for new thread readers:

    Just open QuickTime without opening any files with it. This prevents the media keys from launching iTunes automatically and they still work with the active app like the Spotify.

    I liked the simplicity of this workaround, although its not the real thing.

    Since I consider Apple responsible for this stupidity with the remote control daemon, I sent my feedback to them. I think everyone should do it to increase the number of complaints:
    http://www.apple.com/feedback/macosx.html

    Br,

    AnttiN

  12. 0

    thebitguru

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I just finished publishing a patch that prevents iTunes from starting when you press the play button on the keyboard. Check it out at the following URL.

    http://www.thebitguru.com/blog/view/357-New%20Patch:%20Play%20Button%20iTunes%20 Patch

    I only have one Mac so I haven't been able to test it out on multiple computers, but this should work on systems running 10.6.5.

  13. 0

    bodhirocking

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Well since the rcd got corrupted or can't be launch because of codesigning issues, we can disable the launch request for the app using:

    launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

    I got this terminal command from: http://gavinroy.com/disabling-default-itunes-launch-behavior-with

    Now the console is not showing the error anymore. I still don't know if this setting will remain after a reboot, I always leave my mac in sleep mode.

    I Hope this will be helpful for you all. Regards

  14. 0

    plentyofpaper

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I just found a solution that works for me, but may cause problems for others.

    I renamed iTunes.app. It no longer launches when I press the keyboard keys, but will still launch when I tell it to.

    This may cause some issues elsewhere, but I only use iTunes for syncing my iPod, and nothing more, so it works for me.

    This "feature" has caused me a headache, as my cat is constantly launching iTunes.

  15. 0

    rogeriomarques

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Oh, my beloved Wacom tablet!

    iTunes keeps launching by itself when I have my Wacom Intuos connected to my Mini 2011 and this behavior disappear as soon as I disconnected it.

    Solution: I applied this patch and everything works fine now: https://github.com/thebitguru/play-button-itunes-patch