6

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.

0

2 Answers 2

2

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

1
  • 5
    Unfortunately, this completely disables media keys, not just iTunes.
    – Tomáš M.
    Commented Aug 31, 2023 at 20:14
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.

3
  • 1
    This also adds inconvenience to using other special features (volume and brightness adjustment).
    – victorlin
    Commented Jan 8 at 3:01
  • It's an either/or, there's no granularity. At least this method doesn't unload the entire plist, making the whole set unavailable.
    – Tetsujin
    Commented Jan 8 at 6:58
  • 1
    This is not the correct method. It would cause many side effects.
    – rcanpahali
    Commented Mar 19 at 13:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .