Stop the Apple Music app from launching
lowtechguys.com
lowtechguys.com
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)
> Codex as of right now would write some overpowered application that polls in a loop looking for Music App starts and killing them
Most human engineers would also do this. It's a relative rarity to find someone writing things this elegantly.
Similarly, if you asked an agent to "Stop the Apple Music app from launching", it would likely try to do what most humans would do. Otoh if you asked an agent to explain why the Apple Music app launches, based on the discoveries it presents to you from its investigation you would quickly discover for yourself that asking it to make a zero code app that collides with Music is the best course of action.
If their tendancy is to research a problem and understand why it's happening and design a solution, then their LLM assisted code will do that as well.
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.
It is shockingly easy to build an opinionated UI for these things in a web browser. You need to implement m3u generation (or use a js web player), and some sort of hierarchical hyperlink based nav that matches your muscle memory. You should be able to use an existing service to grab cover art and metadata for newly ripped disks (unless those services disappeared over the years).
If you want to use a native GUI/TUI toolkit, I’d be shocked if an LLM had any trouble laying it out after a few rounds of refinement. (It definitely will not have any trouble doing this for web stuff.)
I’ve had mixed luck getting llm’s to configure mpv (which involved writing lua or something for basic functionality!), but there are audio sync issues with it.
I miss the days when something like totem would just work and default to playing with deinterlacing and audio set correctly.
Configuring VLC is like solving a 200 variable boolean satisfiability problem or something. Also, the workarounds for core bugs come and go over time, so Reddit suggests toggling removed settings.
The iOS app is such a permanently buggy mess that I eventually had to bail after years of use with persistent issues that wouldn’t get fixed, and new bugs popping up. It can play hyper obscure formats, but the basic UI functions are very unstable
I’ll happily install that if I can see the source code, read it all in a sitting, and it is not terrible.
(Note that, in this model, if I want to futz with key bindings or other UI tweaks, I can just ask an LLM to change it. No configuration UI required! Just like evilwm.)
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.
Thought if I remember correctly, search was still showing it, which was a little annoying. But it depends on how much you search.
I'm currently using the service right now, so I can't really check if anything has changed since last year when I was doing it.
On MacOS I think it opens to the online home page, but I use it so infrequently I'm not sure. I pretty much only use it to buy music from iTunes.
I have over 8000 songs synced to my phone, 100% from local files on my computer.
I never activate the "library sync" BS that Apple tries to force on you, because historically it has replaced your copies with incorrect or "remastered" (AKA dynamically compressed to hell) versions from Apple servers.
I've even caught it switching "library sync" on without permission during an update.
"to find that content on the phone is difficult"
How? You tap Library, then Songs. There's all your music.
You can technically still buy albums, but you can really tell its only there because it was forgotten about.
In iOS Music, tapping the artist name on a song launches the artist’s cloud Apple Music page —- even if you’ve hidden paid Apple Music.
Disabling cellular data for the Music app fixes this by showing an album view of the downloaded music from the artist. However, the cloud version is unavoidable on WiFi. It’s a small but annoying example of how Apple made the classic experience worse to push their subscription product.
It is basically old iTunes with some UI improvements and modern features built around somebody who has their own library to manage. Been around for a long time.
It’s great software that I’m willing to pay for in today’s world for sure.
Maybe I should have an LLM port to rust. It was under a thousand lines of code.
Easy as [mpg]123
But it still has library views for songs, albums, artists, and playlists. That's the whole thing. Additional tabs to support modern music streaming don't devalue those tabs.
The Mac app version is less annoying in that way as it seems to vaguely remember what you were looking at.
Stuff designed to rip mp3 streams got this right.
I'm probably holding it wrong.
I wish I believed in software hell because then I would be happy knowing that’s where iTunes existed.
So my next phone was an Android phone. And I could just plug it into a USB slot, and it showed up as an attached drive, the same way a thumbdrive did. Simple file transfer, at last.
That was nearly twenty years ago, and I have never bought an iPhone or iPad since.
Makes me feel like an idiot for doing something as outlandish as paying artists for their music.
So don't worry! The same trash UI is available to you... except now even worse, thanks to "Liquid Glass" and brain-dead decisions like moving the playback controls from the empty area at the top of the screen into the content-browser area... where they reside on a "transparent" bubble that overlaps other graphics and text.
Just about everything I watch or listen to is served from the same iTunes Library I've had for over 20 years. It's more important to me now than it has ever been.
Worse, the fun, here’s your music collection as a wall of cover images didn’t sit well with consumers who just wanted, I don’t know, get fed music and not curate themselves and I guess that’s how we ended up with mediocre.
iTunes Match still exists, one of the handful of subs I pay for.
This is problematic because if I were to accidentally hit the button in the middle of a set, and it decides to default to whatever interface is connected to the P.A. system, then now I've just started blasting some random song at full volume to everyone in the venue.
(It's not an immediate problem for me anymore because I've reworked my hardware setup such that the dongle connects through my audio interface rather than directly to my laptop, meaning my laptop no longer receives "play/pause" commands from it. There were additional reasons for this rework, but preventing this misbehavior was absolutely part of the consideration.)
It's absurd that a premium device marketed to creative professionals has unconfigurable behavior like this which is so unacceptable for a live show.
Have a look at Loopback - very mature app now. I use this for doing live and studio routing, you set a live profile so that only your soft synths actually get an output and Music (and FaceTime, system, whatever) get sent to the musical equivalent of /dev/null. So an accidental press of "Play" has no effect (beyond perhaps catastrophic stuttering as Music.app opens.)
My laptop is disconnected at the moment so it's full of "missing device" notifications but this screenshot[1] will give you an idea. Profiles on the left, apps in the next column, routing to mixer channels (I have a multichannel interface) next and then "monitor devices" which can be multiplexed.
Loopback looks nice, but I prefer to keep the routing entirely within my DAW (or my interface where possible) to keep latency to a minimum, particularly since I'm already using wireless headphones that add 10ms latency.
Another mitigation I now have is to use an aggregate device that has BlackHole on the first two channels rather than the main outputs. That way, if I accidentally start playing audio, it gets harmlessly sent to the void; and it also means I can easily capture and forward it in my DAW if I actually want to play PC audio (for example, listening to a recording during a rehearsal).
> you can uninstall it anytime
I'm sure it tells you that... but did you actually try?
The "uninstall" button is a lie: You cannot remove the app, you can only roll it back to some mandatory minimum version.
> Do you want to uninstall all updates to this Android System app?
If you "uninstall", the app still exists, and your only choice is to surrender and update it again. So yes, that "system app" is (as far as Google is concerned) absolutely "mandatory" on my phone.
Some of those might be system level stuff, but I don't know what the heck Google TV is, and I certainly am not signing up for whtever "YT Music" is. Probably some spotify subscription thing they will cancel like they did google play music and whatever came before that. But I can't uninstall any of these, or even delete the icons. They're just visual trash I can't hide from the launcher.
I don't trust the digital music stores anymore, cumulatively I have probably $100 worth of music I've bought across 3-4 music stores in the last 25 years and I can't access any of it anymore. Meanwhile my MP3 collection and WinAmp from high school continue to work without issue.
Whatever is the last thing that was paused should play IMHO. If nothing was paused, it should do nothing. Else, you open a pandora's box of possibly wrong choices that the user then has to close.
That's currently how it works.
This is purely an issue and complaint for when nothing at all was playing or open, and an app hasn't currently registered a handler.
If you land on a fresh desktop from reboot and press play, what should happen?
But whatever, the experience is bad: I have to wait for the Music application startup time, then click the context menu and select "Quit Apple Music". It feels like being forced to watch a product ad. Opening Apple Music is never what I want. Imagine if pressing shift opened TextEdit by default, that would be silly. Or doing CMD-v where you can't paste would automatically pop up some random app.
I feel like no machine response is a correct UX pattern in this case. The absence of sound playback would indicate to me that I need to do something else to play sound.
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.
What do you mean not everyone has the same keyboard???
I think peak productivity for desktops was probably hit about 10 years ago. Most things since then are worse, and the best things from macOS (drag and drop everything nearly anywhere, consistent keyboard shortcuts and interfaces, scriptability of everything, etc.) were never copied by other systems.
Now systems are being designed to follow Node JS-style development which doesn’t work like a normal thing anywhere and native apps are just as bad as electron apps from a usability perspective…
At least they can be vibe coded since Interface Builder is no longer needed?
0 - https://daringfireball.net/2026/06/swiftui_only_makes_it_eas...
The issue IMHO is that this is not configurable. Apple Music may even be a reasonable default (being the built-in music player). But it should provide options for Apple Music, whatever other apps I have installed, or nothing.
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.
1. You have an iPhone, a Macbook, and AirPods.
2. You are listening to a podcast or song on your iPhone using your AirPods.
3. You press your AirPods stem to pause the podcast or song on your iPhone.
4. You press your AirPods again, expecting to continue the podcast or song on your iPhone.
5. Your AirPods are now connected to your Mac, which is opening Apple Music. This takes a long time to complete.
Note that you can not remove the Music app from MacOS without serious compromises to MacOS. It is a slow, awful resource hog that I personally never want to use, and it rubs me the wrong way. My impression of Apple is much lower for it.
Internet Explorer bundling was an instruction manual!
Why not to have a simple way to turn this offensive behaviour off? Nonsense. It is intentionally offensive and forceful! Straight forceful behaviour that needs to be cut down at the sprout! Otherwise it will multiply and suffocate you down the line.
Too much of the product designers adapt this arrogant attitude, Apple is just a (sizeable) drop in the sea!
I'm just trying to put my bluetooth earbud in my ear to make a Teams call, and 1/3 of the time I get an onboarding prompt to join Apple Music on my work computer. Can't turn it off.
Similar situation in the past: Microsoft vs Netscape.
It's funny you say this because when I read the solution my first thought was that's such an Apple thing.
You have to do it once per file type but it's once and done.
>You have to do it once per file type but it's once and done.
I will note I have one Mac with one old user account where it will not remember this anymore across reboots (across macOS 15, plan to skip 26 and hope 27 is acceptable). I haven't had time to try to get into why, but it's occasionally irritating.
I'm by no way an Apple fan, but why not uninstall the app if you don't need it?
Of course, doing so just to get rid of Apple Music would tend to be a bit crazy.
We're on a tech forum where everyone here is aware (or at least can understand) how SIP is useful for the security model on MacOS. But for plenty of people with this problem, SIP is only the thing you learn can disable so you can immediately make your life a little better.
The crazy ones are Apple here, since this problem should not require disabling SIP to fix.
Drag Music app to Trash, and that it! Like you do with any other app.
My repeated attempts to remove from Dock and hide it all failed: half the time I remove my ear buds the Apple Music pops up in the middle of my screen and auto-enables itself in the Dock...
Go ahead and try. It's not like "any other app".
- Unable to drag from the Applications drawer to Trash
- Unable to drag from the Spotlight search to Trash
- Unable to drag from Finder (in ~/Applications) to Trash
- Unable to delete (in Finder)
- Unable to delete (through rm in terminal).
This has been a bother for years across MacOS versions and I've tried variations of these, personally.
In the future, you might consider not denigrating others in this way. It is hard to save face when you are wrong. And it is hard for others to provide an avenue for you to save face while also pointing out that your statements are not true.
Now the app doesn't even have the "move to trash" item in the contextual menu like non-system apps do
I just can't understand why I have to have my list of useful apps interspersed with cruft like Books.app or Journal.app.
F3/F4 are remapped to the keyboard backlight brightness.
F5-F9 are remapped to be plain old function keys.
This post has a lot of great info: https://news.ycombinator.com/item?id=35555475
This is the mapping I use on an M1 MacBook:
hidutil property --set '{
"UserKeyMapping":[
{"HIDKeyboardModifierMappingSrc":0x0000FF0100000010,"HIDKeyboardModifierMappingDst":0x00FF00000009},
{"HIDKeyboardModifierMappingSrc":0x0000000c00000221,"HIDKeyboardModifierMappingDst":0x00FF00000008},
{"HIDKeyboardModifierMappingSrc":0x0000000c000000cf,"HIDKeyboardModifierMappingDst":0x00070000003e},
{"HIDKeyboardModifierMappingSrc":0x000000010000009b,"HIDKeyboardModifierMappingDst":0x00070000003f},
{"HIDKeyboardModifierMappingSrc":0x0000000c000000b4,"HIDKeyboardModifierMappingDst":0x000700000040},
{"HIDKeyboardModifierMappingSrc":0x0000000c000000cd,"HIDKeyboardModifierMappingDst":0x000700000041},
{"HIDKeyboardModifierMappingSrc":0x0000000c000000b3,"HIDKeyboardModifierMappingDst":0x000700000042}
]
}'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!)
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.
Google did the same thing with Transformers 2 I think. It still shows up as Purchased for me even though I absolutely did not purchase that. Good way to ensure I never ever watch any Transformers movie!
These days you can delete the album from your library and set the Music app to not automatically download your purchases. If you want to go an extra mile, you can login to your iTunes account to view your purchases and hide it there too.
+1 point for Joey Ramone.
So annoying and not great UX from Apple imo. Thanks for this.
The rest of us ask for a customizable experience.
> No option’s perfect.
Bullshit. I've used Linux and Windows PCs before, I have not heard a single user want Apple Music to open when they put on their headphones. There is a perfect solution, but you lack the willpower to call Apple out for dark patterns. This should only be an opt-in feature, full-stop.
"Absolutely unlimited grief and inconvenience!"
If you dont have music, this just wastes a bit of time. If you have music, apparently it wastes a lot of time.
Cherry or grape?
I mostly listen to the radio, with an occasional trip where I instead listen to a podcast or music via CarPlay.
What I've found greatly helps is when I finish a trip where I've used CarPlay after I park but before turning the car off I open my phone, open control center, tap the now playing widget, tap the symbol on that for output selection, and make sure it is set to iPhone Speaker. I then hit the Media button in the car and select FM. That starts the radio playing. Then I stop the radio and shut off the car.
Next time I use the car CarPlay connects normally but does NOT take over the media playback. If I hit the play button in the car it starts playing the radio.
This works fine for me because as I said I mostly listen to radio. It is not that big of a deal the once a week or so that I listen via CarPlay to do those extra steps at the end of a trip.
It would probably be a lot more annoying if I was frequently switching between radio and CarPlay.
In either case I would definitely like a setting somewhere that makes it so the play button in the car plays whatever source was playing the last time you turned off playback.
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'> BeardedSpice is a menubar application for Mac OSX that allows you to control web based media players and some native apps with the media keys found on Mac keyboards. It is an extensible application that works with Chrome (Canary, Yandex, Chromium) and Safari, and can control any tab with an applicable media player.
- Media Playback Known Issues: In apps like TV, Podcasts, and Music, the window controls may become unresponsive after dragging the playhead to adjust the playback position. (177984877)
- Workaround: Use keyboard shortcuts or the menu bar to close, minimize, or enter full screen mode.
• • •
Super clunky compared to the imminently more practical workaround for wrong-size gifs in Messages, STOP LOOKING AT IT:
- Messages Known Issues: GIFs and pasted images might render as the incorrect size. (177657977)
- Workaround: Scroll until that message is offscreen
curl https://alx.sh | sh
https://asahilinux.org/fedoraI'm a classic macOS fan, but it's time for us to admit that it's not a premium OS anymore. It's a service upsell layer.
If I were on my computer, it'd actually link the Gentoo script that we used to bootstrap it on AWS.
1. Open System Settings
2. Navigate to Screen Time -> App Limits -> Add Limit...
3. Select "Music" and set an "Every Day" limit of 0 minutes.
For example, it keeps polluting my results with things like preinstalled system music demo files. There's no option to exclude the location, nor to selectively disable "Garageband" results while keeping other apps I actually do use for work.
On the bright side, there are a few power scripts that allow a much more custom experience (particularly if you are an all keyboard shortcuts person), but I am not the kind that wants extras there.
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.
Also a bit unfortunate that a software like this has to exist in the first place.
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!
I have the podcast app and so many times I would click an AirPod to resume and it would play a random song
Many times Apple Music also triggered by the Bluetooth devices which is super annoying.
Apple really needs to implement a way to remove Apple Music completely.
Slightly concerned Apple would patch this by preventing others from using the same bundle identifier as their official apps, though?
sudo chmod -x /Applications/Music.app
edit: sorry about that. this used to work before the Music.app moved to /System/Applications ~: 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) % ls -la /System/Applications/Music.app/Contents/MacOS/Music
-rwxr-xr-x 1 root wheel 66201040 Apr 30 09:12 /System/Applications/Music.app/Contents/MacOS/Musicthis is the OG app.
Then launch it once to say you approve
startup Ventura and later: Navigate to System Settings Select General Select Login Items Click the + under Open at Login and select noTunes
The next time you go to launch Chrome, type ch and then use the arrow keys to navigate to the Chrome result to launch it.
You may have to do that for one more launch. After that it should always launch Chrome with ‘ch’.
/s for the sarcasm impaired
Another fix for this bollocks