Source code for this one: https://github.com/FuzzyIdeas/MusicDecoy
- I'll pause a podcast I'm listening to on my iPhone or iPad, or just take my AirPods out of my ear for a moment
- Like 5 minutes later, I'll squeeze the AirPod stem to resume playback. It will instead think that I want to play Apple Music on my Mac for some fucking reason.
I don't think this behavior can be easily customized (somebody let me know if it can!)
The rest of us ask for a customizable experience.
You have to do it once per file type but it's once and done.
/s for the sarcasm impaired
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
will quit the process responsible for the madness (rcd, the "remote control daemon").You'll have to remember to re-load this thing if you want the default behavior. Or if you encounter other unexpected situations, to restore the default insanity.
It might be easier to run this app instead; then you have an icon in your GUI desktop environment and an app you can simply quit to restore defaults. Plus this app allows you to assign any app to the "Play" media event.
I ran the above and then quit Apple Music and tried a few different things and so far it hasn't come back up.
FTA:
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'I have the podcast app and so many times I would click an AirPod to resume and it would play a random song
Although it's a pretty well known source in the macOS apps community (lowtechguys.com) with source code available right on the front page (https://github.com/FuzzyIdeas/MusicDecoy) and the code does basically nothing. There's not much to be afraid of.
sudo chmod -x /Applications/Music.app ~: sudo chmod -x /Applications/Music.app
chmod: /Applications/Music.app: No such file or directory
~: sudo chmod -x /System/Applications/Music.app
chmod: Unable to change file mode on /System/Applications/Music.app: Operation not permitted
(Mac OS Tahoe 26.5)I searched for some decent mp3 players for a while, and even used AIMP for a while, but nowadays I think I'll just vibe code my own with my own interface and rely on the local file system and folder mounts to do the job. I really love this new era where I can just use AI to build a custom thing for myself and forget about all the predatory crap out there, especially from the OS vendors. I don't need streaming, I don't want it. I would have kept buying albums off iTunes, but since it sucks so much I'll just buy it on CD, thanks.
I love clever, low-or-no-code engineering solutions like this. You typically need to understand a systems very deeply to reach this level of elegance. In this case, one has to understand exactly what happens when the play button is pressed in Mac OS, how bundle identifiers work, etc. And the outcome is an app with almost no code at all – just a collision – it's beautiful.
(As an aside, coding agents are terrible at this kind of thing; I'd guess Codex as of right now would write some overpowered application that polls in a loop looking for Music App starts and killing them)
I actually nuked my music library off my Mac to mitigate this problem, but it's still a nuisance when the app launches.
Thank you for sharing this!
It's made worse by the fact that I use my AirPods across my personal devices and my work Mac, the latter of which I have to switch them to manually (since my work Mac is not on my personal iCloud account).
Anyway, however it happens, I often found the Music app launching on my personal and work Macs, and noTunes prevents it.
If Spotify isn't running for whatever reason, or sometimes even if it is, Apple Music decides that what I actually want is for it to steal focus for 5 seconds while it loads, switch to a full screen window and pester me to subscribe.
So in my case, the button click is intentional but the response isn't.
Feels like at one point all the people who spent decades building OSes and desktop environment left Apple and Microsoft, and the people left are brand new developers who only been using computers for the last 10 years or something. Or something something executives/management, whatever fits your worldview better.
I'd be fine with it doing that if it actually opened what i listen with. The OS can clearly see i spend 100% of my time in another music player (Spotify), opening Apple Music is at best a poorly designed UX.
I did this for most of last year. I had all local music in Apple Music, disabled the cloud stuff, and synced it all to my iPhone by plugging it in with a cable, as if it was an old iPod. It all still worked.
It is basically old iTunes with some UI improvements and modern features built around somebody who has their own library to manage.
One developer AFAIK, been around for a long time.
It’s great software that I’m willing to pay for in today’s world for sure.
ericskiff•1h ago
ASalazarMX•58m ago
I'm by no way an Apple fan, but why not uninstall the app if you don't need it?
jacobsenscott•54m ago
callc•47m ago
joxdosba•33m ago
Of course, doing so just to get rid of Apple Music would tend to be a bit crazy.
dlev_pika•24m ago
mritun•20m ago
Drag Music app to Trash, and that it! Like you do with any other app.
FloayYerBoat•8m ago
wood_spirit•41m ago