X
Nhấn vào đây để đến phiên bản di động của trang web.

Diễn đàn trợ giúp

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

Được đăng

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
Trích dẫn

Chi tiết hệ thống bổ sung

Phần bổ trợ đã cài đặt

  • Shockwave Flash 32.0 r0

Ứng dụng

  • Chuỗi đại diện người dùng: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Thông tin chi tiết

Wesley Branton
  • Top 25 Contributor
598 giải pháp 5029 câu trả lời
Được đăng

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.
Bài viết này có hữu ích với bạn không?
Trích dẫn

Người tạo câu hỏi

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 :)
Bài viết này có hữu ích với bạn không?
Trích dẫn

Người tạo câu hỏi

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
Bài viết này có hữu ích với bạn không?
Trích dẫn
Wesley Branton
  • Top 25 Contributor
598 giải pháp 5029 câu trả lời
Được đăng

The AutoConfig should work with any preference.

The AutoConfig should work with any preference.
Bài viết này có hữu ích với bạn không?
Trích dẫn
cor-el
  • Top 10 Contributor
  • Moderator
17482 giải pháp 158022 câu trả lời
Được đăng

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

Được chỉnh sửa bởi cor-el vào

Bài viết này có hữu ích với bạn không?
Trích dẫn

Người tạo câu hỏi

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
Bài viết này có hữu ích với bạn không?
Trích dẫn
Wesley Branton
  • Top 25 Contributor
598 giải pháp 5029 câu trả lời
Được đăng

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.
Bài viết này có hữu ích với bạn không?
Trích dẫn
cor-el
  • Top 10 Contributor
  • Moderator
17482 giải pháp 158022 câu trả lời
Được đăng

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).
Bài viết này có hữu ích với bạn không?
Trích dẫn

Người tạo câu hỏi

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?
Bài viết này có hữu ích với bạn không?
Trích dẫn
Wesley Branton
  • Top 25 Contributor
598 giải pháp 5029 câu trả lời
Được đăng

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).
Bài viết này có hữu ích với bạn không?
Trích dẫn
Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.