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

Приложение

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

Дополнительная информация

Wesley Branton
  • Top 10 Contributor
589 решений 4999 ответов
Размещено

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 решений 4999 ответов
Размещено

The AutoConfig should work with any preference.

The AutoConfig should work with any preference.
Помогла ли вам это?
Цитата
cor-el
  • Top 10 Contributor
  • Moderator
17467 решений 157849 ответов
Размещено

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 решений 4999 ответов
Размещено

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
17467 решений 157849 ответов
Размещено

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 решений 4999 ответов
Размещено

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).
Помогла ли вам это?
Цитата
Задать вопрос

Для ответа на сообщения вы должны войти в свою учётную запись. Пожалуйста, задайте новый вопрос, если у вас ещё нет учётной записи.