Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.
How to set a specific download folder in Firefox Quantum 68.1.0esr per autoconfig or profiles???
I am trying to install above mentioned Firefox version in a Terminal Server environment. How can I set a specific download folder/path as permanent location for downloading a file from the internet for all terminal user profiles. I would like to accomplish this with autoconfig.js or per user.js profile. Or is there a specific registry I can set in regedit for Firefox and where?
You help is much appreciated :) I am looking forward to hearing from you.
Kind regards Daniel
All Replies (10)
You can do this by setting the
browser.download.dir preference using AutoConfig.
An example of locking this preference to the user download folder would look like this:
Hope this helps.
Thanks for you quick reply. I will check it out and let you know :)
Good morning Wesley,
I have another question regarding Firefox configuration.
All those settings I can set in the user.js file, can they also be used in the config file with "pref, defaultPref, lockPref & clearPref" settings? Or only certain settings can be configured with the config file and rest needs to be set by creating the user.js file?
Thanks in advance for your help :)
The AutoConfig should work with any preference.
Keep in mind that if you want to use defaultPref() on a localized pref that you need to use a data URI to set the value (pref() and lockPref() always work).
Note that you can also use a policies.json file to set some properties including a few preferences.
Okulungisiwe ngu cor-el
I deployed FF to the terminal server environment with AutoConfig file.
But as soon as I start FF I get error message "Configuration Error" "Failed to read the configuration file".
I checked both files "mozilla.cfg & autoconfig.js" but I can't see any errors or mistakes. Do you guys might know what is causing this.
Attached are the screenshots of both files
Thanks in advance
If you open the folder that has the files in them in File Explorer, select the View tab and check File name extensions, I think that you may find that one or both of the files have the
.txt file extension.
Hope this helps.
Note that autoconfig.js also should start with a comment line just to be sure and that the file needs to use Unix line endings (LF) that basic Notepad do not support.
I don't think that Firefox would throw that error if there is a problem with the file extension of the autoconfig.js file although there could still be a possible double autoconfig.js.js file extension.
There are prefs in the autoconfig.cfg file that are no longer supported in current Firefox releases (some may still work in Firefox 68 ESR).
I checked the file extension and they were fine.
I created new mozilla.cfg file with notepad++ and the UNIX line endings (LF)
I just created a basic file with a dedicated start page and it worked. Where can I find a list with all configs for FF ESR 60 that can be used for the .cfg file?
Any preference that can be added to the
about:config page is compatible with the AutoConfig method. Because this list would include thousands of preferences and they are updated from time to time, there is no complete list online.
However, usually, searching for the task you want to do online will list the appropriate preference to use (often on this website or Reddit).