Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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 reply
  • 1 has this problem
  • 1 view
  • Last reply by 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)

All Replies (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