Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pomoc přepytać

Hladajće so wobšudstwa pomocy. Njenamołwimy was ženje, telefonowe čisło zawołać, SMS pósłać abo wosobinske informacije přeradźić. Prošu zdźělće podhladnu aktiwitu z pomocu nastajenja „Znjewužiwanje zdźělić“.

Learn More

Locking preferences for a specific profile

  • 3 wotmołwy
  • 2 matej tutón problem
  • 12 napohladow
  • Poslednja wotmołwa wot cor-el

more options

Hey,

Is there a way to lock preferences only for a specific profile and not globally ( for all profiles, like in this guide: http://kb.mozillazine.org/Locking_preferences )?

Hey, Is there a way to lock preferences only for a specific profile and not globally ( for all profiles, like in this guide: http://kb.mozillazine.org/Locking_preferences )?

Wot dakespam změnjeny

Wubrane rozrisanje

I do not think so, but there is an easy workaround, use an additional Firefox install. Using the OS accounts it is possible then for restricted users only to use the restricted and prefs locked install of Firefox.

See

You could install multiple copies of Firefox Release in a similar manner.

Tutu wotmołwu w konteksće čitać 👍 0

Wšě wotmołwy (3)

more options

Wubrane rozrisanje

I do not think so, but there is an easy workaround, use an additional Firefox install. Using the OS accounts it is possible then for restricted users only to use the restricted and prefs locked install of Firefox.

See

You could install multiple copies of Firefox Release in a similar manner.

more options

Thanks, that workaround should be sufficient!

more options

The mozilla.cfg file is evaluated as JavaScript with chrome privileges, so you can easily wrap lockPref lines in a block that checks the profile location

//
profD = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile).path;

if(profD ==  ""){
<pref calls go here>
}

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

You can also test for environment variables.

See also;