X
Tap here to go to the mobile version of the site.

Fóram Tacaíochta

How to set a specific download folder in Firefox Quantum 68.1.0esr per autoconfig or profiles???

Postáilte

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
Luaigh

Tuilleadh mionsonraí faoin chóras

Breiseáin Shuiteáilte

  • Shockwave Flash 32.0 r0

Feidhmchlár

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Tuilleadh Eolais

Wesley Branton
  • Top 10 Contributor
591 réiteach 5010 freagra

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.
An bhfuil an freagra seo cabhrach?
Luaigh

Úinéir na ceiste

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 :)
An bhfuil an freagra seo cabhrach?
Luaigh

Úinéir na ceiste

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
An bhfuil an freagra seo cabhrach?
Luaigh
Wesley Branton
  • Top 10 Contributor
591 réiteach 5010 freagra

The AutoConfig should work with any preference.

The AutoConfig should work with any preference.
An bhfuil an freagra seo cabhrach?
Luaigh
cor-el
  • Top 10 Contributor
  • Moderator
17470 réiteach 157895 freagra

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

Athraithe ag cor-el ar

An bhfuil an freagra seo cabhrach?
Luaigh

Úinéir na ceiste

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
An bhfuil an freagra seo cabhrach?
Luaigh
Wesley Branton
  • Top 10 Contributor
591 réiteach 5010 freagra

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.
An bhfuil an freagra seo cabhrach?
Luaigh
cor-el
  • Top 10 Contributor
  • Moderator
17470 réiteach 157895 freagra

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).
An bhfuil an freagra seo cabhrach?
Luaigh

Úinéir na ceiste

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?
An bhfuil an freagra seo cabhrach?
Luaigh
Wesley Branton
  • Top 10 Contributor
591 réiteach 5010 freagra

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).
An bhfuil an freagra seo cabhrach?
Luaigh
Cuir ceist

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.