[wpkg-users] firefox upgrading users profiles

Tomasz Chmielewski mangoo at wpkg.org
Tue Jul 24 12:35:24 CEST 2007


Vincent MALIEN schrieb:
> Hello,
> I come back on this problem, I didn't solve it. I re-explain it:
> I need the following customisation on every firefox profiles:
> prefs.js:
> user_pref("network.proxy.http", "192.168.5.1");
> user_pref("network.proxy.http_port", 3128);
> user_pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 
> 192.168.5.0/24");
> user_pref("network.proxy.type", 1);
> user_pref("browser.startup.homepage", "http://srvlinux/");
> user_pref("signed.applets.codebase_principal_support", true);
> firefox.js:
> pref("app.update.enabled", false);
> 
> I copied it with wpkg in "%PROGRAMFILES%\Mozilla Firefox\prefs.js" and  
> in "%PROGRAMFILES%\Mozilla Firefox\default\profile\prefs.js". but 
> existing profile doesn't use it.

No, it doesn't work that way.

Add this to the end of all.js file:

pref("general.config.filename", "mozilla.cfg");


Then, create a file called mozilla.txt (yes, mozilla.txt, not 
mozilla.cfg), and put your custom settings there:

lockPref("network.proxy.backup.ftp", "your.proxy");
lockPref("network.proxy.backup.ftp_port", 3128);
lockPref("network.proxy.backup.gopher", "your.proxy");
lockPref("network.proxy.backup.gopher_port", 3128);
lockPref("network.proxy.backup.socks", "your.proxy");
lockPref("network.proxy.backup.socks_port", 3128);
lockPref("network.proxy.backup.ssl", "your.proxy");
lockPref("network.proxy.backup.ssl_port", 3128);
lockPref("network.proxy.ftp", "your.proxy");
lockPref("network.proxy.ftp_port", 3128);
lockPref("network.proxy.gopher", "your.proxy");
lockPref("network.proxy.gopher_port", 3128);
lockPref("network.proxy.http", "your.proxy");
lockPref("network.proxy.http_port", 3128);

lockPref("network.proxy.no_proxies_on", "192.168.*,localhost,127.0.0.1, 
glpi, glpi.your.domain");

lockPref("network.proxy.share_proxy_settings", true);
lockPref("network.proxy.socks", "your.proxy");
lockPref("network.proxy.socks_port", 3128);
lockPref("network.proxy.ssl", "your.proxy");
lockPref("network.proxy.ssl_port", 3128);
lockPref("network.proxy.type", 1);


Next, convert this file into mozilla.cfg, and copy this file to 
"%PROGRAMFILES%\Mozilla Firefox". You can do conversion here:

http://www.alain.knaff.lu/%7Eaknaff/howto/MozillaCustomization/cgi/byteshf.cgi


You can find more details on locking preferences here:

http://kb.mozillazine.org/Locking_preferences


I'd be glad if someone adds this info to the wiki :)


-- 
Tomasz Chmielewski
http://wpkg.org




wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list