policies.json vs. about:config
Hello Firefox-Support Team,
I want to know if i set differnet value for browser.download.folderList in policies.json = 0 in about:config = 1 which value will be enforced?
BRs AM
Wšykne wótegrona (4)
That will likely be the value as set via policies.json. The source code shows:
DefaultDownloadDirectory: { onBeforeAddons(manager, param) { setDefaultPref("browser.download.dir", replacePathVariables(param)); // If a custom download directory is being used, just lock folder list to 2. setAndLockPref("browser.download.folderList", 2); }, },
Hello cor-el,
thank you for your quick answer. One more question: Is it a general case that the settings from policies.json will be enforced? It will be suitable for the following examples/PolicyName ,which are listed from this site: https://github.com/mozilla/policy-templates/blob/master/README.md#extensions ? of cousre, only for those, which can been used by about:config.
Thank you! BR AM
If you can set preferences directly then you can set the Locked status if you want.
Are you setting browser.download.dir as well ?
No. Just I have a very extensive settings/preferences and just for the case that things would be sometimes be overlooked, since I set them in two places for different values. The question was purely hypothetical so that I know which setting (from policies.json or about:config/autoconfig) is counted/has the higher prio. If I understand you correctly, then the values (not just limited to my given example at the very beginning) in policies.json has a higer prio then in about:config, right?
Wót AmChannel