[Project_owners] How to use install.js to write to all.js file?

Ben Bucksch ben.bucksch.news at beonex.com
Thu Dec 25 19:34:05 EST 2003


HJ wrote:

>You could also create a pref file called projectname.js and dump it in 
>mozilla/defaults/pref during the XPInstall process. This is the best way to override default pref settings.
>
Yes, but there's a gotcha: The filename matters, files are evaluated 
alphabetically, but I don't remember in which direction. Netscape used 
that to override prefs, e.g. using all-ns.js.

>Simply copy the pref setting(s) from all.js and paste it into this file and adjust the setting(s).
>
(But please only copy those libes you want to change :) .)

Ben



More information about the Project_owners mailing list