Firefox 147 added support for using XDG base directory rather than ~/.mozilla, but only for new installations.
Reading on the Internet there are some claims that there are absolute filepaths in the user data directory, but today I moved my ~/.mozilla to ~/.config/mozilla and it worked fine […]