How to Stop macOS from Automatically Opening the Music App When Headphones Connect

The Unprompted Soundtrack

macOS has a long-standing, often infuriating behavioral quirk: it assumes that whenever you connect an audio device, you immediately want to listen to music. Whether you pair your AirPods via Bluetooth or physically plug in a set of studio headphones via the 3.5mm jack, macOS frequently triggers a system-level media command that forces the native Apple Music application to launch in the background. Worse, if you previously had a track paused, it will often automatically hit “play.” If you were connecting your headphones to join a quiet Zoom meeting or edit a video in Premiere, suddenly having loud music blasting into your ears is highly disruptive.

Blocking the Media Trigger

To ensure your Mac remains completely silent upon headphone connection and stop it from automatically launching the Music app, you must intervene using a terminal command to intercept the media key daemon.

macOS does not offer a graphical toggle switch for this specific behavior. You must use the Terminal to prevent the background process (rcd) from accepting the “play” command triggered by the headphone jack. Open your application drawer, go to Utilities, and launch Terminal. Type the following command exactly as written: launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist and press Enter. (Note: On newer versions of macOS with System Integrity Protection, you may need to rely on a third-party utility like “noTunes” as Apple has locked down the LaunchAgents folder). If the command executes successfully, the remote control daemon is disabled. The next time you plug in your headphones, the system will route the audio correctly, but it will absolutely refuse to launch the Apple Music application.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.