
Now, if Login Items has Apple Music added, it will start playing automatically upon the booting of Mac. That is why you must only add necessary programs to Login Items. Here, it is vital to understand that the more startup programs present on Mac, the more time it will take to boot. It can be due to low battery or poor Bluetooth signals. Check Bluetooth Headphone and AirPodsĭid your Music app just open automatically while connecting your AirPods? This problem can be due to a wide variety of issues. After running the above command, you will again observe that the Music app will open automatically on its own when you press the Play button on the keyboard or touchpad. Here, the only difference is the use of load instead of unload.

Launchctl load -w /System/Library/LaunchAgents/ Lastly, the /System/Library/LaunchAgents/ tells the agent location you want to disable.ĭo you want to revert to the original settings? In that case, you will need to open the Terminal once again and run the below command:.unload directs launchtl to disable a specific agent.Here, launchtl is the application that allows users to control agents which run in the background.Executing the above command will prevent the Music app from opening automatically on Mac.Īre you wondering what “ launchctl unload -w /System/Library/LaunchAgents/” actually does in the background? Now, nothing will happen if you press the Play button on your keyboard or Touchpad. Launchctl unload -w /System/Library/LaunchAgents/ After opening the Terminal, copy-paste the below command and hit Enter.Press Command+ Space bar and type Terminal in the search box to open it directly.

You can also open Terminal using Spotlight.
