I recently migrated to a new Macbook.
If I do a $ defaults write ...
in my shell, I get an error shaped like defaults[12608:79345] Could not write domain Apple Global Domain; exiting
. Using sudo
does work, however I have some defaults that are set in my .bashrc file -- these writes did work in my old system's .bashrc, without a sudo.
Q1: Are defaults saved across reboots? If so, I can removed these from my (cluttered) .bashrc and get on with life.
Q2: If defaults are not saved across reboots, what file(s) do I need to chown or chmod in order to get the defaults write
to work quietly, in my .bashrc file?
What I've done so far:
- Read the
defaults
man page -- only seems to document the API. - Skimmed around in Apple's developer docs for Preferences. Again, this seems to be higher level API documentation for application developers who are using Cocoa.