From 8bcd47716d936b00398da491f9c5f822e1766bcf Mon Sep 17 00:00:00 2001 From: Michael Kaply Date: Mon, 10 Dec 2018 15:54:36 -0600 Subject: [PATCH] Inital checkin of Mac policy support --- mac/README.md | 36 +++++++++++++++++++++++++++++++++++ mac/org.mozilla.firefox.plist | 4 ++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 mac/README.md diff --git a/mac/README.md b/mac/README.md new file mode 100644 index 0000000..5b575da --- /dev/null +++ b/mac/README.md @@ -0,0 +1,36 @@ +**IMPORTANT**: These files are in active development along with the policies in Firefox. To get the policy information that corresponds to a specific release, go to https://github.com/mozilla/policy-templates/releases. + +Starting with Firefox 64 and Firefox ESR 60.4, Firefox supports configuration files on macOS. + +An example plist file with all options is available here: + +https://github.com/mozilla/policy-templates/blob/master/mac/org.mozilla.firefox.plist + +If you want to set specific options from the command line, we also provide flattened shortcuts to any item that is nested in the plist file. + +For example, this policy: +``` +{ + "policies": { + "Homepage": { + "URL": "http://example.com/" + } + } +} +``` +which would be set in the plist file like this: +``` + Homepage + + URL + http://example.com + +``` +can be set via the command line like this: +``` +defaults write 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 +``` diff --git a/mac/org.mozilla.firefox.plist b/mac/org.mozilla.firefox.plist index a2ba037..db7da2d 100644 --- a/mac/org.mozilla.firefox.plist +++ b/mac/org.mozilla.firefox.plist @@ -3,7 +3,7 @@ EnterprisePoliciesEnabled - + AppUpdateURL https://www.example.com/update.xml Authentication @@ -187,7 +187,7 @@ Homepage URL - about:policies + http://example.com Locked Additional -- 2.34.1