Firefox 4 push settings for all users
In firefox 3 i used a file called greprefs\all-company.js to push new settings to all our firefox users. This worked. Now is the question is how to do this in firefox 4? I need to change about:config lines for about 100 firefox users.
Svi odgovori (2)
I'm on Windows7 and the config file appears to have been moved into my AppData folder.
c:\Users\[username]\AppData\Roaming\Mozilla\Firefox\Prifiles\0geepmuw.default\prefs.js
I anyone can figure out what needs to be done to push this out for users, that would be awesome!
You can use a file mozilla.cfg to set the default values of prefs or lock them to prevent users from changing them.
You can place that local-settings.js file to specify that you want to use mozilla.cfg in defaults\pref directory.
pref("general.config.obscure_value", 0); // needed if you do not want to use byte shifting pref("general.config.filename", "mozilla.cfg");
Copy the file local-settings.js to: C:\Program Files\Mozilla Firefox\defaults\pref
You can use these functions in mozilla.cfg :
defaultPref(); // set new default value pref(); // set pref, but allow changes lockPref(); // lock pref, disallow changes
See: