Music Decoy: Prevent Apple Music from Auto-Launching on macOS

Music Decoy provides a solution for macOS users who want to stop the system Music app from automatically launching whenever the ∵ Play button is pressed or a Bluetooth headset sends a play command. The utility works by occupying the bundle identifier that the system uses to launch the Music app, effectively acting as a decoy.

How Music Decoy Works

Music Decoy uses a low-overhead engineering approach by sharing the same bundle identifier as the official Apple Music app. Because it exists as a running process with that identifier, the system believes the Music app is already active and does not attempt to launch the actual application.

As noted by community members, this is a high-efficiency solution:

The app does absolutely no work in the background. It works by simply existing as a running process, thanks to having the same bundle identifier as the Music app.

Configuration and Usage

Launching Alternative Applications

Since version 1.1, Music Decoy can be configured to launch a different media application (such as Spotify) when the play button is pressed. This is achieved via the Terminal using the following command:

defaults write com.lowtechguys.MusicDecoy mediaAppPath /Applications/Spotify.app

To reset this configuration to default behavior, run:

defaults delete com.lowtechguys.MusicDecoy mediaAppPath

Quitting the Application

Because Music Decoy has no Dock or menu bar icon, it must be terminated through one of two methods:

  1. Activity Monitor: Locate "Music Decoy" and use the stop (❌) button.
  2. Terminal: Run the command killall 'Music Decoy'

The Technical Cause of Auto-Launching

The automatic launch of the Music app is managed by a daemon called rcd (Remote Control Daemon). When a play event is triggered—via keyboard media keys, Bluetooth headset connections, or ending a phone call—rcd checks for an active app playing audio. If no such app is found, rcd defaults to launching the system Music app.

Alternative Solutions

Depending on user needs, there are several other ways to prevent the Music app from launching:

Software Alternatives

  • noTunes: A popular alternative that listens for launched apps and kills the Music app immediately upon startup. While it can launch custom apps on play, it uses a small amount of background CPU.
  • BeardedSpice: A menu bar application that allows media keys to control web-based media players and native apps across various browsers.

Manual and System-Level Tweaks

  • Disabling the rcd Daemon: Running launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist stops the daemon entirely. However, this completely disables the Play button's functionality.
  • Permission Changes: Some users suggest using sudo chmod -x /Applications/Music.app to remove execution permissions from the app bundle.
  • Folder Locking: Locking the ~Music/Music folder to prevent the app from launching while keeping media keys functional for other apps.
  • Key Remapping: Using tools like Karabiner or the built-in hidutil utility to remap media keys to different functions or specific applications.

User Perspectives and Pain Points

Users report that the auto-launch behavior is particularly disruptive in professional environments. One user described a scenario where a Bluetooth headphone dongle could accidentally trigger the Music app to blast a random song through a P.A. system during a live musical performance. Others cited the annoyance of full-screen subscription pop-ups appearing when connecting to vehicles or the app automatically adding opened audio files to the system music library.

Sources