Impedire l'avvio dell'app Apple Music
Sintesi redazionale: URL dell'articolo: https://lowtechguys.com/musicdecoy/ URL dei commenti: https://news.ycombinator.com/item?id=48447935 Punti: 508 # Commenti: 196. Fonte originale: https://lowtechguys.com/musicdecoy/
<p>Since v1.1 you can configure Music Decoy to launch another app when the **▷ Play** button is pressed.</p><p>To do that, run the following command in the Terminal *(example for Spotify)*:</p><p>```<br>defaults write com.lowtechguys.MusicDecoy mediaAppPath /Applications/Spotify.app<br>```</p><p>To reset the configuration, run:</p><p>```<br>defaults delete com.lowtechguys.MusicDecoy mediaAppPath<br>```</p><p>There is a daemon called `rcd`</p><p>*(short for Remote Control Daemon)* that is responsible for handling media keys.</p><p>When a play event occurs, rcd checks if there is an app that is currently playing audio. If there is, it sends the play command to that app. If there isn't, it launches the system Music app.</p><p>There is a way to disable that daemon but it also disables the ability to control media playback with the keyboard.</p><p>Based on this StackExchange answer, there are a few different ways to achieve the same effect:</p><p>`launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist`</p><p>Problem:</p><p>disables the Play button completely</p><p>noTunes which listens for launched apps and kills Music as soon as it is launched</p><p>Problem:</p><p>it does use a tiny bit of CPU in the backgroundalthough checking for launched apps is very little work</p><p>The app has no Dock icon and no menubar icon so to quit it you'd need to do *one of the following*:</p><p>`killall 'Music Decoy'`</p>
