חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

lock preferences

  • 4 תגובות
  • 1 has this problem
  • 2 views
  • תגובה אחרונה מאת mr_moe

more options

I'm trying to lock down thunderbird preferences for our company clients. Following the instructions on

http://kb.mozillazine.org/Locking_preferences

I created a the file

C:\Program Files (x86)\Mozilla Thunderbird\defaults\pref\local-settings.js

with the following content

//

lockPref("network.proxy.type", 0);

Checking the effects with about:config still says user-setting for the proxy.type entry.

Trying to load a "mozilla.cfg" in the installation directory and configure it in "local-settings.js" does not work either...

My version of thunderbird is 45.2.0

Is there any way to lock down preferences with "defaults\pref\local-settings.js" ?

I'm trying to lock down thunderbird preferences for our company clients. Following the instructions on http://kb.mozillazine.org/Locking_preferences I created a the file C:\Program Files (x86)\Mozilla Thunderbird\defaults\pref\local-settings.js with the following content // lockPref("network.proxy.type", 0); Checking the effects with about:config still says user-setting for the proxy.type entry. Trying to load a "mozilla.cfg" in the installation directory and configure it in "local-settings.js" does not work either... My version of thunderbird is 45.2.0 Is there any way to lock down preferences with "defaults\pref\local-settings.js" ?

השתנתה ב־ על־ידי mr_moe

פתרון נבחר

ok I completely copied the filenames and contents from the Locking_preferences page and then it is working as expected

but why have two files with one file only loading the other and not beeing able to use random filenames....

seems a little unintuitive...

But many thanks for your support!!

Read this answer in context 👍 0

כל התגובות (4)

more options

User set means the value is "non default" as 0 is non default for that setting then you are seeing the result of your setting change.

You will not See "locked" The inability of the user to change the setting to something else is what you have achieved, not a notice to the user.

more options

I deleted the proxy.type setting from prefs.js

Now it shows network.proxy.type=5 as Standard. Since I'm setting 0 in defaults\pref\local-settings.js it seems not to work... An I can also edit the setting as I like and that editing is preserved over reboot. So locking is not working... What is wrong?

more options

hmm are you using the same case in he file name in prefs and the file system. Aas we are dealing with javascript is you have Mozilla.cfg and mozilla.cfg they will not be seen as the same file name

more options

פתרון נבחר

ok I completely copied the filenames and contents from the Locking_preferences page and then it is working as expected

but why have two files with one file only loading the other and not beeing able to use random filenames....

seems a little unintuitive...

But many thanks for your support!!