flacco wrote: > I'm trying to figure out a way to automatically set up new users with > company defaults in Mozilla: > > - home page > - theme > - anti-ad features (pop-ups, etc) > - secure IMAP account > - ldap address book > - search engine > - proxies >
I think that users.js might work for something like this. You simply set up a copy of moz as you like it, then quit moz and copy prefs.js. Look through it for the settings you want to change (those listed above) in the prefs.js and copy only those to a new file called users.js. Write up a script to replace the stuff that changes. The install.js should be around five lines total, so that's really not difficult. Here's the idea: When you (or a user?) put in a username, your script generates that particular version of user.js, grabs the simple install.js, gzips the result, saves as username.xpi, and emails it to the user. Alternatively you can probably send just user.js and copy it to their profile directory, but that'd be a pain. Someone better versed in xpinstall might want to comment here, but I figured I'd give you at least one idea. -- grayrest http://grayrest.com/moz
