Stop the Apple Music app from launching

Hacker News Top Tools

Summary

Music Decoy is a macOS utility that intercepts the Play key to prevent the Apple Music app from launching, allowing redirection to another app like Spotify. It solves the issue of rcd automatically launching Music when no other audio app is playing.

No content available
Original Article
View Cached Full Text

Cached at: 06/08/26, 06:18 PM

# Music Decoy - Stop launching the Music app whenever you press ▶ Play Source: [https://lowtechguys.com/musicdecoy](https://lowtechguys.com/musicdecoy) ## Configuration Since[v1\.1](https://github.com/FuzzyIdeas/MusicDecoy/releases/tag/v1.1)you can configure Music Decoy to launch another app when the**▷ Play**button is pressed\. To do that, run the following command in the Terminal*\(example for Spotify\)*: ``` defaults write com.lowtechguys.MusicDecoy mediaAppPath /Applications/Spotify.app ``` To reset the configuration, run: ``` defaults delete com.lowtechguys.MusicDecoy mediaAppPath ``` ## When does Music launch itself? - When you press the ▶ Play key on your keyboard and there is no other app playing audio - When a bluetooth headset connects and sends a play command - When ending a call, which causes the bluetooth headset to switch from call mode to music mode ## Why does this happen? There is a daemon called`rcd`*\(short for Remote Control Daemon\)*that is responsible for handling media keys\. When a play event occurs, rcd checks if there is an app that is currently playing audio\. If there is, it sends the play command to that app\. If there isn't, it launches the system Music app\. There is a way to disable that daemon but it also disables the ability to control media playback with the keyboard\. ## Alternatives Based on[this StackExchange answer](https://apple.stackexchange.com/questions/372948/how-can-i-prevent-music-app-from-starting-automatically-randomly), there are a few different ways to achieve the same effect: `launchctl unload \-w /System/Library/LaunchAgents/com\.apple\.rcd\.plist` > Problem:*disables the Play button completely* [noTunes](https://github.com/tombonez/noTunes)which listens for launched apps and kills Music as soon as it is launched > Problem:*it does use a tiny bit of CPU in the background*although checking for launched apps is very little work Advantage:*it can launch a custom app on Play*which this app can't do ## Uh\.\. how do I quit this app? The app has no Dock icon and no menubar icon so to quit it you'd need to do*one of the following*: - Launch**Activity Monitor**, find**Music Decoy**and press the ❌ button at the top - Run the following command in the Terminal:`killall 'Music Decoy'`

Similar Articles

Mic Drop 3.0

Product Hunt

Mic Drop 3.0 is a tool that lets you mute your microphone in any app using your AirPods.

Sound Warden

Product Hunt

Sound Warden is a macOS utility that automatically routes each app's audio to the desired audio device.

How to Disable Music Videos in Spotify

Wired

Spotify added a toggle to disable music videos, Canvas, and video podcasts in its settings, allowing users to save bandwidth and avoid distractions.