Stop the Apple Music app from launching

(lowtechguys.com)

235 points | by bobbiechen 1 hour ago

25 comments

  • jxmorris12 10 minutes ago
    > 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.

    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)

    • lucideer 2 minutes ago
      On the contrary, this feels like a great (hypothetical) example of how to use coding agents effectively.

      > 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.

  • titzer 13 minutes ago
    I still can't believe they killed iTunes. I used to have my entire digital music library in iTunes. Most of that was music I had ripped myself from CD, but I had a handful of albums I bought of iTunes and even some TV shows. When they wholesale abandoned iTunes and deleted from Mac OS in favor of...whatever Apple Music is, I knew I'd never trust them again.

    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.

    • Matl 8 minutes ago
      There's great hand crafted library managers/players out there like https://www.strawberrymusicplayer.org etc.
    • al_borland 6 minutes ago
      You can turn off the cloud service in Apple Music and still use it with your local tracks and music downloaded from the iTunes Music Store (which still exists).

      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.

      • titzer 1 minute ago
        Fool me once.
    • californical 5 minutes ago
      Check out Swinsian.

      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.

    • Stitch4223 8 minutes ago
      The specification would matter more than the source it produces. Specify it right and share it with the world. Code is basically a winamp skin on the OS level.
    • hedgehog 9 minutes ago
      iTunes and iPhoto both. Given how good the tools are getting, and how much existing sample code is available, it seems likely someone will do a good job of reincarnating them in the near future. Apple broke the apps I used most on the Mac and then they added the bubblicious design crime UI, no thanks.
      • al_borland 2 minutes ago
        I found a WinAmp clone, written in Swift and AppKit, in the App Store yesterday. It was a month old, and from the description (ex. "No Electron, no bloat." and "No telemetry, no tracking, no accounts") it was almost certainly vibe coded. All the things it was saying were things I like, but written in a very AI way.
    • asdff 11 minutes ago
      Why vibe code anything? VLC would fit the bill. Even quicktime.
      • titzer 1 minute ago
        It's mostly that I want my own list management, key combinations, navigation, etc. Once the entire UI is my oyster, I realized I don't have to settle for how someone else decided to lay out the menus, etc. 25 years ago I would just learn all the key combos and be set, but 12 major iterations later, few to zero of those UI skills and muscle memory state has survived. So now, I can do my own and no one can take it away from me :)
  • riazrizvi 50 minutes ago
    It's very sad to see Apple using these lowbrow Microsoft tactics. Press ganging your users into launching your other shit product is brand cannibalism.
    • letrix 34 minutes ago
      But why wouldn't pressing the Play button, when no media session is available, not open the music player?
      • kqp 0 minutes ago
        It doesn’t, it opens Apple Music. Apple has a longstanding problem with giving their own apps privileged roles that they don’t expose to competitors. What concessions exist in browsers, maps, and music player are all the result of being forced into it by various lawsuits. Let’s not play games about what’s going on here.
      • spankalee 30 minutes ago
        I don't use Apple Music, so opening their music player only wastes my attention and time. It happens if you accidentally press play on your headphones too. Then you need to quit Apple Music, for no good reason. And you can't uninstall it!
      • wk_end 25 minutes ago
        If there’s no media session available, “play” isn’t an action that makes any sense, so it shouldn’t do anything IMO.
        • embedding-shape 21 minutes ago
          Yeah, right? Seems obvious to me. If I press "Backspace" and there is nothing to go back to, or to remove, I expect the key to do nothing. Same for Escape, or Volume Up, or whatever. If it can't do what's expected, it does nothing.

          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.

          • ryandrake 10 minutes ago
            No other key on my keyboard opens an application. I don't see why there should be one special key that operates that way.
      • deinonychus 25 minutes ago
        But why wouldn't the OS developer, when many people don't use Apple Music, not offer users the ability to pick what the key does?
      • FinnKuhn 28 minutes ago
        Because it's not the music player I choose to use. I would be ok with it, if I could change the default to e.g. VLC or Spotify.
        • stringfood 25 minutes ago
          or turn it off entirely because guess what? Most people are accidently hitting this play/pause button or they hit it thinking youtube is going to respond and instead they get Apple's seriously shite music player. classic apple no respect for me and my choices.
      • unshavedyak 14 minutes ago
        > not open the music player?

        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.

      • antoineMoPa 29 minutes ago
        It cannot assume which media player I want to use, so the best course of action is to do nothing.
        • parl_match 27 minutes ago
          It's very reasonable that pressing "play" opens the default music player. They should let you choose.
      • lgcmo 28 minutes ago
        Let me change the default music player
  • hmokiguess 1 hour ago
    for me it's when I open an audio file and it automatically launches it AND adds it to my music library, the adding to library is what I hate, then I have to delete it and specifically choose "Keep file"
    • kccqzy 22 minutes ago
      Ah a long time ago when the Music app was still called iTunes I have configured all music files to be opened with quicktime player. It’s been so long that I forgot the default was the Music app. To me it’s absolutely clear that playing a file doesn’t mean I want it in my library.
    • lachlan_gray 11 minutes ago
      Yes, so many times I've been jumpscared by work-related audio in my playlists because of this
    • fnordlord 16 minutes ago
      This was annoying to me too but it is pretty easy to fix. Just right click on the .mp3 or whatever file, Get Info and change the default application to your preferred app and then click on "Change all..."

      You have to do it once per file type but it's once and done.

    • dlev_pika 25 minutes ago
      Yeah, this sucks
  • ericskiff 1 hour ago
    Thank you, this is a huge pet peeve of mine. I mis-click my airpod and suddenly this app I've never used and don't want launches
    • ASalazarMX 56 minutes ago
      > this app I've never used and don't want launches

      I'm by no way an Apple fan, but why not uninstall the app if you don't need it?

      • jacobsenscott 53 minutes ago
        It cannot be uninstalled
        • mritun 19 minutes ago
          ^ How can you make such an obviously wrong statement?

          Drag Music app to Trash, and that it! Like you do with any other app.

          • Savageman 3 minutes ago
            As a non power of Mac (only recently switched), I'll definitely try this.

            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...

          • FloayYerBoat 6 minutes ago
            I hope this is a joke. You cannot delete it. It's considered "system" software.
        • dlev_pika 22 minutes ago
          The (shitty) logic here is that you don’t ‘own’ the OS, but merely rent it, so “deal with it”
        • callc 46 minutes ago
          cough cough hey EU you hearing this shit?
          • joxdosba 32 minutes ago
            If you for whatever reason do not want the security benefits offered by SIP, you can turn it off.

            Of course, doing so just to get rid of Apple Music would tend to be a bit crazy.

    • wood_spirit 39 minutes ago
      Same! And there is no obvious close button etc on the overtop blocking modal dialog either. It’s a dark pattern.
  • bound008 14 minutes ago
    PSA: Its Unix.

      sudo chmod -x /Applications/Music.app
    • paulgb 6 minutes ago
      I wish it were that simple.

          ~: 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)
  • ios-contractor 12 minutes ago
    I have Galaxy Buds Pro and I'm using this awesome client https://github.com/timschneeb/GalaxyBudsClient to disable all touches but sometimes the client isn't running in the background and the Music app just gets in my way, so this is great!
  • hollowonepl 15 minutes ago
    This is nice, I recently vibe coded my own media player as I mostly listen to my own digitalized audio library and all software available today sucks to cover my scenario or consumes way too much resources by my taste… but random triggering Apple Music happens so often and it’s so annoying. Good article explaining how the trick works, should be easy to self-implement without installing another 3rd party software from nowhere known source
    • alin23 12 minutes ago
      Dev here, thanks!

      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.

  • boutell 8 minutes ago
    I THOUGHT I WAS THE ONLY ONE!

    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!

  • skarz 55 minutes ago
    Every time I get in my car the Apple Music app prompts me to resubscribe with a full screen popup. Usually it tries 2-3 times before it stops.
    • CamperBob2 29 minutes ago
      I use both Apple Music and Spotify, and normally use the former in the car because it resumes its state from the last shutdown while Spotify does not. But when I do use Spotify, Apple Music is the app that comes up the next time I start the car. Pretty annoying.
  • lxgr 1 hour ago
    Reading this title made “The Miracle of Joey Ramone” by U2 play in my head.
    • dlev_pika 21 minutes ago
      Oh man, throwback to when they forced the U2 albums on to everyone’s device for ReasonsTM
      • cryptoz 2 minutes ago
        It's not even a throwback. That U2 album still shows up if I accidentally open Apple Music. I haaaaate it. I disliked U2 before any of this, but now I have absolutely sworn to never ever listen to any of their music.

        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!

  • rbbydotdev 7 minutes ago
    launching apple music on play, seems very similar to microsoft's early anti trust case and internet explorer
  • r0fl 46 minutes ago
    I deleted mine because of this problem

    I have the podcast app and so many times I would click an AirPod to resume and it would play a random song

  • watersb 54 minutes ago
    From TFA, via StackExchange:

        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.

    • linsomniac 31 minutes ago
      Wow, thank you! I use and "like" youtube music, but it seems like every time I'd start a google meet call (IIRC) or otherwise interact with audio on my MacBook it would bring up Apple Music. If I quit it, it would pop back up the next time I had audio playing, but if I just left it running it would be fine. So I'd always have this Apple Music in my list of running apps. Kind of annoying.

      I ran the above and then quit Apple Music and tried a few different things and so far it hasn't come back up.

    • Terretta 10 minutes ago
      > you have an icon ... simply quit

      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'
  • stmw 33 minutes ago
    This is great! We need something similar for knowledgeconstructiond and several other overly insistent Apple software components.
  • nottorp 1 hour ago
    Lovely. I don't press the play button by mistake much, but if i touch my BT headphones wrong...
    • drcongo 15 minutes ago
      I actually had to look at my keyboard as I'd forgotten there even was a play button.
  • verdverm 1 hour ago
    I've been using this for a while now: https://github.com/tombonez/noTunes

    Source code for this one: https://github.com/FuzzyIdeas/MusicDecoy

    • tomComb 1 hour ago
      It seems I need to leave this running for it to work? So it's not just a configuration changes.
      • forsalebypwner 1 hour ago
        When you first launch it, you'll notice a pop-up saying that this will automatically run when you login. There's no dock icon or menu bar icon. So no configuration changes needed.
        • thinkontheclock 40 minutes ago
          Interesting, there's always been a menu bar icon for it for me. You can hide it, though.
          • forsalebypwner 34 minutes ago
            I'm using "Music Decoy" and I don't see one. Possible noTunes has one.
    • echelon_musk 1 hour ago
      Same. noTunes works perfectly. There's no need to reinvent the wheel.
    • dangerlibrary 1 hour ago
      noTunes is one of the first things I install on a new mac.
      • fartfeatures 1 hour ago
        I'm very clumsy and I've never hit the play button by accident. What are you guys doing that makes it so easy to accidentally click the play button? Are you using the mac with the touch bar or something?
        • forsalebypwner 1 hour ago
          For me, this constantly happens:

          - 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!)

          • hombre_fatal 52 minutes ago
            Just this week I was stuck in this state where my AirPods were receiving audio from the iPhone in my pocket (intended), but play/pause commands from the AirPods were sent to my Macbook in the other room.
        • plqbfbv 57 minutes ago
          I had to start using noTunes years ago because whenever I accidentally touched or removed my (Sony / non-Apple) bluetooth headphones, iTunes/Music would pop up without fail. Apparently they sent a "play" button press, so the application would pop up. Because it's a system application, you cannot delete it, there's no way to override the key, there's no way to disable it. So noTunes has been running for 7 years straight on my Mac.
        • dwedge 37 minutes ago
          I use play/pause to start/stop the music on whatever I was listening to music on (Spotify usually, sometimes brain.fm). It's a background action, play music or stop music, no change to flow.

          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.

        • js2 59 minutes ago
          For me it's my AirPods launching the Music app, something I rarely want. At the same time, it's one click in the menu bar to disable noTunes in the rare circumstances I want to use the Music app.

          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.

        • creedleshrump 1 hour ago
          For me it mostly happens when I press play on my airpods. If they connect to my mac instead of my phone it opens up apple music if I don't have another media player open.
  • sph 57 minutes ago
    The lack of applications like this is why macOS will always be a superior alternative to Linux.

    /s for the sarcasm impaired

  • bigyabai 1 hour ago
    For the life of me, I cannot figure out why this is the default behavior for a supposedly premium operating system.
    • eviks 58 minutes ago
      The OS isn't supposed to be premium since it's free, does that help figure it out?
      • nkozyra 31 minutes ago
        You can't buy the OS directly, but it certainly isn't free.
    • imglorp 1 hour ago
      It seems the fans are willing to put up with absolutely unlimited grief and inconvenience to drink the koolaid they're given. Some Apple PM made a edict 11 years ago that Music shalt be thine only audio experience on the platform. Lock it down, boys!

      The rest of us ask for a customizable experience.

      • the_gastropod 28 minutes ago
        This “Apple customers are brainwashed cultists incapable of examining reality” schtick was tired a decade ago. No option’s perfect. But Apple’s current tradeoffs vs other options’ trade offs continue to feel worthwhile to many.
  • dlev_pika 26 minutes ago
    I wish there was a way to stop it from ever appearing as spotlight result - when I type ‘music’, the first result (always) should be the music app I use, not their stuff
  • nepthar 55 minutes ago
    Thank you. Thank you.
  • innagadadavida 56 minutes ago
    The same thing happens with iPhone and car bluetooth. It is super annyoing and many times, a podcast will be playing in the background while the car has FM/radio selected. This is incredibly frustrating and bad user experience. The worst part is it is not clear if this is Apple's fault or some buggy old firmware in the car's audio stack that is at fault (this happens consistently on 2017 Tesla Model S).
  • valentiniljaz 1 hour ago
    Yes. Yes. Thank you. I wanted something like for years.
  • tobadzistsini 30 minutes ago
    Or just switch to an Android phone.