How to tackle defaults not sticking in Mavericks
New preference-caching routines may interfere with manual settings adjustments in OS X Mavericks.
One of the new features in OS X Mavericks is its preferences-caching routines, which prevent programs from always writing to and reading from preference files stored on disk. This may help prevent preference file corruption and other problems that could arise from relying solely on the files, but also has the drawback of hindering manual preference adjustment on the system.
If you need to change settings manually, you will have to use the "defaults" Terminal command toso it will be cached and used by the program when next launched. However, there are times when even this may not work. In these cases, changes you make -- either by using the "defaults" command or by manually altering the preferences .plist file -- will revert when you relaunch the program. In this way, any change you make will not take effect.
If this happens, it could indicate a problem with the way the preferences management services are handling the storage and retrieval of cached preferences data. To fix this, or at least circumvent it, you can simply quit and relaunch the system's preferences handling daemon, which is a background task called "cfprefsd." This can be done using the following procedure:
- Open the Activity Monitor utility on your system
- Ensure "All Processes" is selected in the View menu
- Search for "cfprefsd" in the search field
- Locate the resulting process that has your username listed
- Select it and click the force-quit button in the toolbar
When this done, try manipulating your preferences again using the "defaults" command or a text editor, to see if they stick properly. If not, then you might see better success by reordering when you quit the "cfprefsd" process. First try using the "defaults" command to change the preferences or otherwise editing the file on disk. Then follow the above procedure to quit the "cfprefsd" process, and relaunch the relevant program to load the new settings you have saved.