Things will be properly split into ~/.cache, ~/.state, with ~/.config holding both config and data.
There was a long running discussion on this . It had some ups and downs. It was originally submitted when Firefox was still called Phoenix. They closed discussion to everyone but code contributors to shut people up for a few years. Then it was re‐opened. At one point a dev declared that this split cannot be done. Then someone immediately described how Google Chrome had already done it for their browser.
Now it’s finally finished and it will work as described above, which is something like Google Chrome.
The old location (~/.mozilla) will still be supported for some long period of time. If you delete ~/.mozilla and let Firefox create a new profile it will use the XDG dirs. You can use Firefox sync to restore your config, bookmarks, etc.
In my case, I will probably wipe and recreate my profiles manually. It’s a good idea to do that occasionally anyway as restoring them across versions will eventually lead to problems.
Unfortunately, Firefox clones like Librewolf will take more time to implement this, so we are stuck with ~/.librewolf until they bring in these changes.
[direct link](https://www.phoronix.com/news/Firefox-147-XDG-Base-Directory)
Things will be properly split into `~/.cache`, `~/.state`, with `~/.config` holding both config and data.
There was a long running discussion on this [21 year old feature request ticket](https://bugzilla.mozilla.org/show_bug.cgi?id=259356). It had some ups and downs. It was originally submitted when Firefox was still called Phoenix. They closed discussion to everyone but code contributors to shut people up for a few years. Then it was re‐opened. At one point a dev declared that this split cannot be done. Then someone immediately described how Google Chrome had already done it for their browser.
Now it’s finally finished and it will work as described above, which is something like Google Chrome.
The old location (`~/.mozilla`) will still be supported for some long period of time. If you delete `~/.mozilla` and let Firefox create a new profile it will use the XDG dirs. You can use Firefox sync to restore your config, bookmarks, etc.
In my case, I will probably wipe and recreate my profiles manually. It’s a good idea to do that occasionally anyway as restoring them across versions will eventually lead to problems.
Unfortunately, Firefox clones like Librewolf will take more time to implement this, so we are stuck with `~/.librewolf` until they bring in these changes.