Why defaults read can't read some domains?
It returns an unintuitive message for when a domain is blank. For example, a fresh install of Firefox willmay create /Library/Preferences/org.mozilla.firefox.plist
, however when trying to read this file:
defaults read /Library/Preferences/org.mozilla.firefox.plist
# errors with:
# Domain /Library/Preferences/org.mozilla.firefox.plist does not exist
If you convert the .plist
to xml you can see it exists but it's blank...
sudo plutil -convert xml1 /Library/Preferences/org.mozilla.firefox.plist
cat /Library/Preferences/org.mozilla.firefox.plist
... shows
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
So this message is simply misleading for blank .plist
files. Note, a similar misleading message may occur if you do not have proper access to read and/or delete a file or setting.
And why is there an plist that stores all my information even my keyboard model.
co.twopeople.mate.plist
contains even more information thanApple Global Domain
It's impossible to know, but you may consider reaching out the developers of that app, it's not something present on any of my machines, so it was likely installed by a 3rd party program that you used in the past.