diff --git a/MANUAL-INSTALL.md b/MANUAL-INSTALL.md index 9ed122b..1dc95c9 100644 --- a/MANUAL-INSTALL.md +++ b/MANUAL-INSTALL.md @@ -38,12 +38,13 @@ (Audio will stop working until the next step, so you might want to pause any running audio apps.) ```shell - sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod + sudo killall coreaudiod ``` + or, if that fails ```shell - sudo killall coreaudiod + sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod ``` - Run `Background Music.app`. diff --git a/MANUAL-UNINSTALL.md b/MANUAL-UNINSTALL.md index fe048ee..0a93e07 100644 --- a/MANUAL-UNINSTALL.md +++ b/MANUAL-UNINSTALL.md @@ -9,12 +9,12 @@ (Open `/Applications/Utilities/Terminal.app` and paste the following at the prompt.) ```shell - sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod + sudo killall coreaudiod ``` or, if that fails ```shell - sudo killall coreaudiod + sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod ``` - Go to the Sound section in System Settings and change your default output device at least once. (If you only have one device now, either use `Audio MIDI Setup.app` to create a temporary aggregate device, restart any audio apps that diff --git a/pkg/postinstall b/pkg/postinstall old mode 100755 new mode 100644 index 222ab75..ed775c9 --- a/pkg/postinstall +++ b/pkg/postinstall @@ -19,7 +19,7 @@ # # postinstall # -# Copyright © 2017-2022 Kyle Neideck +# Copyright © 2017-2022, 2024 Kyle Neideck # # Make sure we use the built-in versions of programs, for consistency. Probably not necessary @@ -53,13 +53,14 @@ bash "post_install.sh" "$xpc_helper_install_path" "BGMXPCHelper.xpc/Contents/Mac # some of these commands don't work with older versions of launchctl, so I figure there's no # harm in trying a bunch of different ways (which should all work). (sudo launchctl kickstart -k system/com.apple.audio.coreaudiod &>/dev/null || \ - launchctl kill SIGTERM system/com.apple.audio.coreaudiod &>/dev/null || \ - launchctl kill TERM system/com.apple.audio.coreaudiod &>/dev/null || \ - launchctl kill 15 system/com.apple.audio.coreaudiod &>/dev/null || \ - launchctl kill -15 system/com.apple.audio.coreaudiod &>/dev/null || \ - (launchctl unload "$coreaudiod_plist" &>/dev/null && \ - launchctl load "$coreaudiod_plist" &>/dev/null) || \ - 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 killall coreaudiod &>/dev/null || \ + (sudo launchctl unload "$coreaudiod_plist" &>/dev/null && \ + sudo launchctl load "$coreaudiod_plist" &>/dev/null) + ) && \ sleep 2 # Wait until coreaudiod has restarted and BGMDevice is ready to use.