Almost all modern Mac keyboards (and Apple Magic Keyboards) feature a dedicated Play/Pause media key on the F8 button. This key is incredibly useful for quickly pausing a YouTube video, a Spotify playlist, or a podcast playing in the background.
However, macOS has a highly aggressive default behavior: if no media is currently playing and you accidentally press the Play/Pause key, your Mac will automatically launch the built-in Apple Music app (formerly iTunes), bouncing the icon in the dock and stealing focus from your current work. If you exclusively use Spotify or a web browser for your music, this behavior is a constant source of frustration.
Because Apple does not provide a standard “System Settings” toggle to disable this auto-launch feature, you have to use a quick Terminal command to block the background listener.
How to Stop Apple Music from Auto-Launching
The background process responsible for listening to the media keys is called rcd (Remote Control Daemon). You can use a terminal command to revoke its ability to launch Apple Music without affecting its ability to pause other active apps.
- Open the Terminal app on your Mac (you can find it by pressing Cmd + Space and typing “Terminal”).
- Copy and paste the following command exactly as written, then press Enter:
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
- If prompted, type your Mac administrator password (your keystrokes will remain invisible) and press Enter.
You do not need to restart your Mac. From now on, pressing the Play/Pause key will still successfully pause active media in Safari, Chrome, or Spotify, but if nothing is playing, the button will simply do nothing. Apple Music will remain firmly closed.
How to Revert the Change
If you eventually decide you want the Apple Music integration back (or if you buy an Apple TV remote that relies on this daemon), you can instantly restore the original behavior with the following command:
launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist