Before you try editing or trashing that preference file, ask whether macOS in the form of cfprefsd isn’t going to undo your work.
When he put files or folders on his Desktop, although they were shown in the Finder’s listing of its contents, they simply vanished.
Some system-wide settings are hidden away in the preferences of bundled apps. Here’s a list of where to look for those and others which aren’t easy to find.
UserDefaults and cfprefsd manage the preference system, an amorphous database spread across hundreds of files which can only be controlled in Terminal. It’s time for a change.
Something wrong with the Finder or an app, and you want to trash its preferences? Don’t: macOS will defeat you. Here’s how to do that so it works.
When nothing seems able to get that preference setting right, don’t abandon hope – follow this instead.
Do you want Photos to show its library selection dialog when it opens? Here’s one solution without the Option key.
Preference files are involved in many Mac problems, and are often their solution. Using them now isn’t simple: here is some guidance.
Inside all those hidden settings which control App Nap to Trackpad scaling factors: what they are and how to set them.
Source code workthrough of one method of checking for and automatically downloading updates to an app, in Swift 5 for macOS 10.11-10.14.