From 53fcf1ccc32356d7cb3b3100493abcf5cdf27d1b Mon Sep 17 00:00:00 2001 From: Per Olofsson Date: Tue, 11 Dec 2018 10:34:02 +0100 Subject: [PATCH] Clarify defaults write commands. --- mac/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mac/README.md b/mac/README.md index e2c5103..9fa0ac1 100644 --- a/mac/README.md +++ b/mac/README.md @@ -26,11 +26,11 @@ which would be set in the plist file like this: http://example.com ``` -can be set via the command line like this: -``` -defaults write org.mozilla.firefox Homepage__URL -string "http://example.com" +As correctly writing nested values with the `defaults` command can be hard, Firefox also supports writing nested values by separating them with `__`, like this: +```bash +sudo defaults write /Library/Preferences/org.mozilla.firefox Homepage__URL -string "http://example.com" ``` Before any command line policies will work, you need to enable policies like this: -``` -defaults write org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE +```bash +sudo defaults write /Library/Preferences/org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE ``` -- 2.34.1