Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How can I make local configurations before starting Firefox?

  • 1 回覆
  • 1 有這個問題
  • 25 次檢視
  • 最近回覆由 cor-el

more options

For Debian Linux, I have a post-installation script in which I would like to make a few local settings for a newly created user account in the file ~/.mozilla/firefox/<profile-directory>/user.js. However, before the user has launched Firefox there is no ~/.mozilla directory. Knowing that the default profile directory name ends with .default-esr I tried creating a new profile with the command

firefox -CreateProfile default-esr

but when Firefox is launched it creates another profile directory which ends with .default-esr-1. How can I create local settings from a script (without user intervention) before Firefox has been launched?

I run Debian 12.1 and Mozilla Firefox 102.13.0esr (from the standard repository).

For Debian Linux, I have a post-installation script in which I would like to make a few local settings for a newly created user account in the file ~/.mozilla/firefox/<profile-directory>/user.js. However, before the user has launched Firefox there is no ~/.mozilla directory. Knowing that the default profile directory name ends with .default-esr I tried creating a new profile with the command firefox -CreateProfile default-esr but when Firefox is launched it creates another profile directory which ends with .default-esr-1. How can I create local settings from a script (without user intervention) before Firefox has been launched? I run Debian 12.1 and Mozilla Firefox 102.13.0esr (from the standard repository).

所有回覆 (1)

more options