Is it possible to change the about:config settings from the commandline?
With regards,
Paul van der Vlis.
about:config is saved in a plain text file called prefs.js in your
Firefox profile folder. So you could change the context of that text
file from the command line using sed if you are using Linux. Or in
either Windows or Linux you could use the append (>>) to add a new
preference to it. There may be command line tools out there similar
to sed to allow you to do a bit more editing than that.
JB
Thank for your help!
Only the changed settings are in the file, I saw.
I also found a global profile in /etc/iceweasel/profile/prefs.js (it's
Debian).
Correct, all the non-default settings will be in prefs.js (the entries
in bold when in about:config). If you want to make any of the
settings static so that an end user cannot change it (well they can
change it for the session but it would revert back at exit) you can
put the settings in user.js in the user's profile folder. That file
does not exist by default but it's a plain text file as well. Easiest
way is to set your settings the way you want it via the GUI, then copy/
paste prefs.js to user.js and then edit user.js to keep only the
settings you want to make permanent. Or you can write directly to the
file same as you would to prefs.js in order to add or change something
in user.js. Great way to make sure the kids don't change your home
page, or don't turn off pop-up blocking, etc.
JB