搜尋 Mozilla 技術支援網站

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

Learn More

Where is the default startup profile stored on Linux?

more options

Hello,

I'm creating a Linux distribution, based on Arch. So I have an installer which installs firefox and a .mozilla of a firefox instance I customised for the distro.

The thing is, when the installation is finished and I reboot and start firefox, I have this popup

I'd like to get rid of that and have firefox to start directly on my profile "default". For that, I'd like to modify directly the needed config file in which Firefox writes the default profile, but I can't find it.

So I'd like to know, in this popup, when I click on "Start Firefox" with the "Use the selected profile without asking at startup", what does Firefox do concretly? So that I can do it in advance in my custom installer instead.

(if needed I can send my .mozilla or my whole distro installer)

Thanks!

Hello, I'm creating a Linux distribution, based on Arch. So I have an installer which installs firefox and a .mozilla of a firefox instance I customised for the distro. The thing is, when the installation is finished and I reboot and start firefox, I have this popup I'd like to get rid of that and have firefox to start directly on my profile "default". For that, I'd like to modify directly the needed config file in which Firefox writes the default profile, but I can't find it. So I'd like to know, in this popup, when I click on "Start Firefox" with the "Use the selected profile without asking at startup", what does Firefox do concretly? So that I can do it in advance in my custom installer instead. (if needed I can send my .mozilla or my whole distro installer) Thanks!
附加的畫面擷圖

被選擇的解決方法

I found why Firefox was starting with the profile manager, one of my other configuration files was opening it with -P and an inexistant profile.

Btw, to answer the main question, it is stored in ~/.mozilla/firefox/profiles.ini

從原來的回覆中察看解決方案 👍 0

所有回覆 (6)

more options

You can discover the default location of Firefox profile folders on your system from the about:profiles page.

Regarding that dialog, hmm. I think Mozilla's official builds create a profile named random.default-release and bypass that dialog on first run. Perhaps there is a build or installer parameter for which behavior Firefox uses on first run. However, I have no idea what it would be.

This search didn't turn up the answer, but I can't help feeling it must be here somewhere:

https://firefox-source-docs.mozilla.org/search.html?q=%22profile+manager%22&check_keywords=yes&area=default

more options

I was not talking about the profile folder. The default profile doesn't even seem to be stored in ~/.mozilla because when I delete this folder and restart Firefox, the popup doesn't appear again, as if Firefox stored the information somewhere else. It's a bit uncomprehensible.

I'll check your link, I didn't know Firefox had docs, that's very good to know! Thanks!

more options

See also this thread on how to initialize a profile via autoconfig.cfg.

more options

I think I'll try to migrate to autoconfig then. Are there ways to install extensions with it? I'd like to have two extensions installed by default on my distro.

more options

For installing extensions and other settings supported by policies easiest and best it to use a policies.json file.

more options

選擇的解決方法

I found why Firefox was starting with the profile manager, one of my other configuration files was opening it with -P and an inexistant profile.

Btw, to answer the main question, it is stored in ~/.mozilla/firefox/profiles.ini

由 victor.bonnelle 於 修改