当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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