11

As title describes, I would like to prevent Music app (previously known as iTunes) From launching and playing music when I accidentally press the F8 (Play Button) on apple keyboard.

I am using macOS Ventura Version 13.0 with an Apple M1.

The previous method I used no longer in effect.

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

Edit: The pause function must retained, such as pause youtube and other player when supported. But the launch music app need to be disabled.

3 Answers3

9

Edit: The following will completely disable your play/pause button.


This is more for the people who are looking for an answer. Type this into your terminal (worked for me on MacOS 13.2.1 with the new M1 chips)

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

I got this from https://gaborhargitai.hu/disable-itunes-keyboard-shortcutsmedia-buttons-on-macos/

To reenable:

launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist

What does launchctl do? I believe this is like systemctl on Ubuntu if anyone is familiar with that.

https://ss64.com/mac/launchctl.html

3

I know this is old, but I had the same problem and finally found the answer on Ask Different: use the free app noTunes.

It listens for the willLaunchApplicationNotification event and if it's for Music.app it immediately terminates it.

It also gives you the option to open a different app (or website even) in its place.

1

Flip the Fn key pref…

enter image description here

System preferences > Keyboard > Keyboard shortcuts > Function Keys
Switch this on to make launching Music require a 2-key press, Fn/F8
Pressing F8 alone will do nothing.

Tetsujin
  • 50,917