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!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Create DEFAULT firefox profile via command line before the first run

  • 1 个回答
  • 1 人有此问题
  • 30 次查看
  • 最后回复者为 cor-el

more options

Hi,

I want to setup a number of addons via command line on a completely fresh Firefox ESR installation on Linux (i.e. while Firefox hasn't been opened yet for the first time by the user). To do this, I first need a default profile directory, but the .mozilla folder is missing from the home path when I install Firefox (it is only created when I run the browser for the first time).

So I tried to create a profile immediately after installing FF:

firefox -createprofile default-esr

This creates the .mozilla folder containing a XXXXXXXX.default-esr directory and the profiles.ini file with the following contents:

[Profile0] Name=default-esr IsRelative=1 Path=XXXXXXXX.default-esr

[General] StartWithLastProfile=1 Version=2

However when I run FF for the first time later on, it completely skips this profile and instead generates a new default one, YYYYYYYY.default-esr-1, and profiles.ini is edited with the following contents:

[Profile1] Name=default-esr-1 IsRelative=1 Path=YYYYYYYY.default-esr-1

[Profile0] Name=default-esr IsRelative=1 Path=XXXXXXXX.default-esr Default=1

[General] StartWithLastProfile=1 Version=2

[Install3B6073811A6ABF12] Default=YYYYYYYY.default-esr-1 Locked=1

I can revert to the profile that I explicitly created by going to about:profiles and setting it again as the default, but this defeats the purpose because I want to prepare my profile via the command line without having to open FF to change a setting. Is this possible?

Hi, I want to setup a number of addons via command line on a completely fresh Firefox ESR installation on Linux (i.e. while Firefox hasn't been opened yet for the first time by the user). To do this, I first need a default profile directory, but the .mozilla folder is missing from the home path when I install Firefox (it is only created when I run the browser for the first time). So I tried to create a profile immediately after installing FF: firefox -createprofile default-esr This creates the .mozilla folder containing a XXXXXXXX.default-esr directory and the profiles.ini file with the following contents: [Profile0] Name=default-esr IsRelative=1 Path=XXXXXXXX.default-esr [General] StartWithLastProfile=1 Version=2 However when I run FF for the first time later on, it completely skips this profile and instead generates a new default one, YYYYYYYY.default-esr-1, and profiles.ini is edited with the following contents: [Profile1] Name=default-esr-1 IsRelative=1 Path=YYYYYYYY.default-esr-1 [Profile0] Name=default-esr IsRelative=1 Path=XXXXXXXX.default-esr Default=1 [General] StartWithLastProfile=1 Version=2 [Install3B6073811A6ABF12] Default=YYYYYYYY.default-esr-1 Locked=1 I can revert to the profile that I explicitly created by going to about:profiles and setting it again as the default, but this defeats the purpose because I want to prepare my profile via the command line '''without having to open FF''' to change a setting. Is this possible?

由droidus于修改

所有回复 (1)

more options