
Where is the default startup profile stored on Linux?
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)
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:
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!
See also this thread on how to initialize a profile via autoconfig.cfg.
- /questions/1342800 how to copy userchrome.css to installer
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.
For installing extensions and other settings supported by policies easiest and best it to use a policies.json file.
選擇的解決方法
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
由 user255658619130095127327144347576036109098 於