X
Πατήστε εδώ για μετάβαση στην έκδοση της ιστοσελίδας για κινητές συσκευές.

Φόρουμ υποστήριξης

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

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
Παράθεση

Επιπρόσθετες λεπτομέρειες συστήματος

Εγκατεστημένα αρθρώματα

  • Shockwave Flash 32.0 r0

Εφαρμογή

  • Πλατφόρμα χρήστη: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Περισσότερες πληροφορίες

Wesley Branton
  • Top 10 Contributor
589 λύσεις 4997 απαντήσεις
Δημοσιεύτηκε

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:

lockPref("browser.download.dir", "C:\\Users\\Owner\\Downloads");

Hope this helps.

You can do this by setting the <code>browser.download.dir</code> preference [[Customizing Firefox Using AutoConfig|using AutoConfig]]. An example of locking this preference to the user download folder would look like this: <code>lockPref("browser.download.dir", "C:\\Users\\Owner\\Downloads");</code> Hope this helps.
Σάς φάνηκε χρήσιμο;
Παράθεση

Ιδιοκτήτης ερώτησης

Dear Wesley,

Thanks for you quick reply. I will check it out and let you know :)

Dear Wesley, 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 :)

Kind regards

Daniel

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 :) Kind regards Daniel
Σάς φάνηκε χρήσιμο;
Παράθεση
Wesley Branton
  • Top 10 Contributor
589 λύσεις 4997 απαντήσεις
Δημοσιεύτηκε

The AutoConfig should work with any preference.

The AutoConfig should work with any preference.
Σάς φάνηκε χρήσιμο;
Παράθεση
cor-el
  • Top 10 Contributor
  • Moderator
17465 λύσεις 157833 απαντήσεις
Δημοσιεύτηκε

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.

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. *https://github.com/mozilla/policy-templates/blob/master/README.md#downloaddirectory *https://support.mozilla.org/en-US/kb/customizing-firefox-using-policiesjson

Τροποποιήθηκε στις από το χρήστη 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

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
Σάς φάνηκε χρήσιμο;
Παράθεση
Wesley Branton
  • Top 10 Contributor
589 λύσεις 4997 απαντήσεις
Δημοσιεύτηκε

It looks like both files are text (txt) files, not a config (cfg) and Javascript (js) file. When you save them using Notepad, you need to change the Save as type to All files or else Notepad will automatically save the files as text, even if you have specified the file extension in the file name.

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.

It looks like both files are text (txt) files, not a config (cfg) and Javascript (js) file. When you save them using Notepad, you need to change the '''Save as type''' to '''All files''' or else Notepad will automatically save the files as text, even if you have specified the file extension in the file name. 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 <code>.txt</code> file extension. Hope this helps.
Σάς φάνηκε χρήσιμο;
Παράθεση
cor-el
  • Top 10 Contributor
  • Moderator
17465 λύσεις 157833 απαντήσεις
Δημοσιεύτηκε

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).

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?

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?
Σάς φάνηκε χρήσιμο;
Παράθεση
Wesley Branton
  • Top 10 Contributor
589 λύσεις 4997 απαντήσεις
Δημοσιεύτηκε

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).

Any preference that can be added to the <code>about:config</code> 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).
Σάς φάνηκε χρήσιμο;
Παράθεση
Κάντε μια ερώτηση

Πρέπει να συνδεθείτε στο λογαριασμό σας για να απαντήσετε στις δημοσιεύσεις. Παρακαλούμε ξεκινήστε μια νέα ερώτηση, αν δεν έχετε ήδη λογαριασμό.