I've built Firefox on CentOS and am having trouble setting default preferences. According to the official docs:
Here is my
// First line must be a comment pref("general.config.filename", "mozconfig.cfg"); pref("general.config.obscure_value", 0);
- Create a .cfg file (by convention, mozilla.cfg — it can be any file name really; it just has to match what is specified in general.config.filename preference, above) in the program directory.
Here is my
/tmp/ff-build/bin/mozconfig.cfg where the only firefox binary is:
// Disable updater lockPref("app.update.enabled", false); // make absolutely sure it is really off lockPref("app.update.auto", false); lockPref("app.update.mode", 0); lockPref("app.update.service.enabled", false); // Disable updater lockPref("app.update.enabled¨, false);
Firefox will run fine without the
autoconfig.js present, but with the configuration above Firefox fails to start with a popup displaying:
Failed to read the configuration file. Please contact your system administrator.
I've tried copying the
mozconfig.cfg to several directories but with no change. How to make Firefox accept the
mozconfig.cfg file? Am I misunderstanding the docs?
(Profiles are deleted and recreated so the solution won't involve adding anything to a ~/ based folder. The above is to get default preferences working. Thank you.)