
how to set homepage with a command line (so I can push per user in Jamf)
I'm looking for command line syntax for Mac OS so I can set the homepage
Chosen solution
You can use the mozilla.cfg file in the Firefox program folder to initialize (set/lock) preferences and run privileged JavaScript code.
The mozilla.cfg file needs to be in the main Firefox program folder. For Mac you need to look further down in this article under "Changes Over Time".
These functions can be used in mozilla.cfg:
defaultPref(); // set new default value, requires special data: format for localized prefs pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
This requires a local-settings.js file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg.
// pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
The mozilla.cfg and local-settings.js files need to start with a comment line (//).
The pref to set the home page is a complex pref that can be localized (read from a file) and needs a special syntax to set a default value using a data URI. This is only required with a defaultPref() call.
See Configuration:
See also:
Read this answer in context 👍 0All Replies (2)
Hi, just trying looking around at what others are doing. Not finding anything myself. All so far point to issues with MAC OS
CCK2 to package up a new version of Firefox https://tinyurl.com/y9pq8k65 from : https://www.jamf.com/jamf-nation
Not sure if the above is a option but might be easier to push out a build.
Chosen Solution
You can use the mozilla.cfg file in the Firefox program folder to initialize (set/lock) preferences and run privileged JavaScript code.
The mozilla.cfg file needs to be in the main Firefox program folder. For Mac you need to look further down in this article under "Changes Over Time".
These functions can be used in mozilla.cfg:
defaultPref(); // set new default value, requires special data: format for localized prefs pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes
This requires a local-settings.js file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg.
// pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);
The mozilla.cfg and local-settings.js files need to start with a comment line (//).
The pref to set the home page is a complex pref that can be localized (read from a file) and needs a special syntax to set a default value using a data URI. This is only required with a defaultPref() call.
See Configuration:
See also: