搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Unable to give a complete path while setting config path for general.config.filename", as I want to lockdown configuration values differently for each user

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

Giving a complete path while setting config path for "general.config.filename", as I want to lockdown configuration values differently for each user. I want to be able to do the below in all.js pref("general.config.filename", "%USERPROFILE%/mozilla.cfg"); but it doesn't seem to work. Is there a way of doing this. I greatly appreciate any approach of a way to be able to set the lock down config file path on a per user basis.

Best Regards Venkata

User Agent

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

Giving a complete path while setting config path for "general.config.filename", as I want to lockdown configuration values differently for each user. I want to be able to do the below in all.js pref("general.config.filename", "%USERPROFILE%/mozilla.cfg"); but it doesn't seem to work. Is there a way of doing this. I greatly appreciate any approach of a way to be able to set the lock down config file path on a per user basis. Best Regards Venkata == User Agent == Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

所有回覆 (1)

more options

The only way to do that is to install Firefox for each user individually and place the corresponding mozilla.cfg in each program folder.

See also http://mxr.mozilla.org/mozilla-central/source/extensions/pref/autoconfig/src/prefcalls.js