kyleneideck / BackgroundMusic

Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio.
GNU General Public License v2.0
16.37k stars 677 forks source link

After uninstall, BackgroundMusic options are still present in System Preferences>Sound>Sound Effects>Play sound effects through #397

Open erikfenriz opened 3 years ago

erikfenriz commented 3 years ago

Hello, BackgroundMusic team. I have carefully followed the uninstallation process https://github.com/kyleneideck/BackgroundMusic/blob/master/MANUAL-UNINSTALL.md

Yet, the options from BackgroundMusic are still in the sound/audio menu.

Screenshot 2020-12-06 at 11 08 06

I would like to remove it completely as there's no sense in having inactive menu options.

macOS Catalina 10.15.7

mkohler99 commented 3 years ago

help, how do I uninstall this on Big Sur

bigcoldcuts commented 3 years ago

i’m having the same problem!

sachbn commented 3 years ago

Hi, any update? I have the same issue :(

kyleneideck commented 3 years ago

I just added a troubleshooting section to https://github.com/kyleneideck/BackgroundMusic/blob/master/MANUAL-UNINSTALL.md. If it still doesn't work for you, let me know what output you get for sudo ls /Library/Audio/Plug-Ins/HAL.

jmanteigueiro commented 3 years ago

I just added a troubleshooting section to https://github.com/kyleneideck/BackgroundMusic/blob/master/MANUAL-UNINSTALL.md. If it still doesn't work for you, let me know what output you get for sudo ls /Library/Audio/Plug-Ins/HAL.

I did all those steps, but it is still present (m1 mac).

kyleneideck commented 3 years ago

@jmanteigueiro Open Activity Monitor, find the process called Core Audio Driver (Background Music.driver), double click it, click Sample Process and look for a line like this under Binary Images:.

0x10b5d8000 -        0x10b5f7fff +com.bearisdriving.BGM.Driver (0.4.0-SNAPSHOT-b38f6dd - 1.0.0) <FB4CD936-5C04-3BC6-ACE9-7B8758E62DC0> /Library/Audio/Plug-Ins/HAL/Background Music Device.driver/Contents/MacOS/Background Music Device

If you find it, can you let me know what it says? I thought /Library/Audio/Plug-Ins/HAL was a fixed path, so if you don't have that dir (and you've restarted your computer), I'm not sure how you're still seeing the Background Music device.

The only thing I can think of is maybe there's some really weird caching in the System Preferences app. Do you see the Background Music device in Audio MIDI Setup.app as well?

What do you get for ls -la /System/Library/Audio/Plug-Ins/HAL?

jmanteigueiro commented 3 years ago

@jmanteigueiro Open Activity Monitor, find the process called Core Audio Driver (Background Music.driver), double click it, click Sample Process and look for a line like this under Binary Images:.

Don't have any process with that name

0x10b5d8000 -        0x10b5f7fff +com.bearisdriving.BGM.Driver (0.4.0-SNAPSHOT-b38f6dd - 1.0.0) <FB4CD936-5C04-3BC6-ACE9-7B8758E62DC0> /Library/Audio/Plug-Ins/HAL/Background Music Device.driver/Contents/MacOS/Background Music Device

If you find it, can you let me know what it says? I thought /Library/Audio/Plug-Ins/HAL was a fixed path, so if you don't have that dir (and you've restarted your computer), I'm not sure how you're still seeing the Background Music device.

The only thing I can think of is maybe there's some really weird caching in the System Preferences app. Do you see the Background Music device in Audio MIDI Setup.app as well?

Yes, it is there, 2 times: 'Background Music' and 'Background Music (UI Sounds)'

What do you get for ls -la /System/Library/Audio/Plug-Ins/HAL?

drwxr-xr-x 11 root wheel 352 Jan 1 2020 . drwxr-xr-x 4 root wheel 128 Jan 1 2020 .. drwxr-xr-x 3 root wheel 96 Jan 1 2020 AirPlay.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 AppleAOPAudioPlugin.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 AppleAVBAudio.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 AppleTimeSyncAudioClock.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 AppleUSBAudio.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 AppleVirtIOSound.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 BluetoothAudioPlugIn.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 BridgeAudioSP.driver drwxr-xr-x 3 root wheel 96 Jan 1 2020 MacAudio.driver

Not sure if changes anything, but I am using the 0.4.0-SNAPSHOT-b38f6dd version, since it's M1 Mac

jmanteigueiro commented 3 years ago

Any news on this @kyleneideck ?

I've noticed Background Music also appears in Users and Groups

image

kyleneideck commented 3 years ago

@jmanteigueiro Sorry, unless it's a bug in macOS, I have no idea what could be causing this.

According to the docs, /Library/Audio/Plug-Ins/HAL is the only path it should be possible to load the plug-in from: https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX11.3.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/AudioServerPlugIn.h#L22 (since it's not in your /System/Library/Audio/Plug-Ins/HAL and that dir is locked by SIP anyway.)

The only thing I can think of is that you might have tried ls /Library/Audio/Plug-Ins/HAL without the sudo and the permissions for your /Library/Audio/Plug-Ins/HAL could be set so that a normal user can't list the directory. But that seems very unlikely. What do you get from sudo ls -la /Library/Audio/Plug-Ins/HAL? (Note that this is the path without /System at the start.)

Can you try running uninstall.sh again and post the output?

That should remove the "Background Music" group you're seeing as well, but if it doesn't you can remove it by following the Optional section in MANUAL-UNINSTALL.md. You can probably just remove it using the System Preferences UI, too.

Since you don't have a Core Audio Driver (Background Music.driver) process, I don't think CoreAudio is loading the Background Music plug-in. Could you post the logs you get from searching for "coreaudiod" in Console.app, setting the Background Music device as your default output device and then playing some audio to it? That should help confirm whether it's actually loaded or not.

Also, you've tried restarting your computer, right?

jmanteigueiro commented 3 years ago

Hey,

I ran the uninstall again and everything is gone (including the users and groups). Might be worth mentioning that I have upgraded to Big Sur 11.6 in the meantime, so that might be related.

Thanks for the help and product!

soundsgoodtome commented 2 years ago

Thanks for this. I had the same issue: Background Music was appearing in Audio Devices, despite a previous uninstallation. I had used AppCleaner, which is usually quite reliable, but although AppCleaner had found a number of related files, it did not remove Background Music Device.driver.

I'm not sure what method(s) AppCleaner uses to find related files, but if it relies upon metadata that can be added to Background Music Device.driver, that might be helpful.

Thankfully, however, manual removal worked.