18

I've been messing with Bluetooth audio settings to try to keep my Bluetooth speakers from popping by changing settings via defaults write, but I'm afraid I've made the problem worse.

I'd like to revert to the default… defaults, bringing them back to where they were originally or, more specifically, where they would be for a new user account or new system. Is this as simple as using defaults delete on the appropriate domain and key?

16

Yes, usually you can just use defaults delete. If for example you have run defaults write -g NSScrollAnimationEnabled -bool false, you can undo the changes by running defaults delete -g NSScrollAnimationEnabled or defaults write -g NSScrollAnimationEnabled -bool true (and by reopening applications to apply the changes).

Even if the preference key had some value before you used defaults, it shouldn't matter if you delete the key. It is generally safe to delete preference keys or even complete files, and they can usually be recreated by OS X or applications.

The property lists modified by defaults are stored in directories like ~/Library/Preferences/, ~/Library/Containers/com.apple.mail/Data/Library/Preferences/, or ~/Library/Preferences/ByHost/. You can edit a plist in a text editor after converting it to XML with plutil -convert xml1.

  • Thanks for the advice. In my case, I found the .plist for com.apple.BluetoothAudioAgent and removed it, which eventually resulted in the default defaults finding their way back after disabling and enabling Bluetooth audio a few times. – zigg Sep 20 '13 at 12:11

You must log in to answer this question.

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