Skip to content

Commit

Permalink
Fix BGMDevice not immediately removed after uninstall on macOS 14.4.
Browse files Browse the repository at this point in the history
The uninstall script was failing to restart `coreaudiod`.

`launchctl kickstart -k` is no longer permitted for `coreaudiod`. See
<https://developer.apple.com/documentation/macos-release-notes/macos-14_4-release-notes>
(thanks to @gchilds) and commit
3097f4b.

Fixes #731.
  • Loading branch information
kyleneideck committed Apr 24, 2024
1 parent 61be8be commit ad14e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BGMApp/BGMApp/_uninstall-non-interactive.sh
Expand Up @@ -140,13 +140,13 @@ sleep 2
# don't work with older versions of launchctl, so I figure there's no harm in trying a bunch of different ways until
# one works.
(sudo launchctl kickstart -k system/com.apple.audio.coreaudiod &>/dev/null || \
sudo killall coreaudiod &>/dev/null || \
sudo launchctl kill SIGTERM system/com.apple.audio.coreaudiod &>/dev/null || \
sudo launchctl kill TERM system/com.apple.audio.coreaudiod &>/dev/null || \
sudo launchctl kill 15 system/com.apple.audio.coreaudiod &>/dev/null || \
sudo launchctl kill -15 system/com.apple.audio.coreaudiod &>/dev/null || \
(sudo launchctl unload "${coreaudiod_plist}" &>/dev/null && \
sudo launchctl load "${coreaudiod_plist}" &>/dev/null) || \
sudo killall coreaudiod &>/dev/null)
sudo launchctl load "${coreaudiod_plist}" &>/dev/null))

echo "..."
sleep 3
Expand Down

0 comments on commit ad14e1b

Please sign in to comment.