[SOLVED] How-to Auto-install extensions in firefox-esr for all users?

Hi,

In the documentation it is said:
deploying extensions

Step 1: Create directories

In the Firefox ESR installation directory, you will need create some required >directories. First, create a directory called distribution . Inside of that directory, >create another called extensions .

But on a fresh install of firefox-esr (78.8) on ubuntu 20.04, these directories are created:

/usr/lib/firefox-esr/distribution
Whos has a link inside that rederict to:
/usr/lib/firefox-esr-addons/distribution/extensions

I also have:
/usr/lib/firefox-esr-addons/extensions that contains a language xpi file

So where do i need to put the addon-id directory exactly ?

After several tests…

The good directory to do this is:
/usr/lib/firefox-esr-addons/distribution/extensions

For example i have added qwant search tool with this addon file for all users:
‘qwantcomforfirefox@jetpack.xpi’

Simple quotes are needed

Hello mozillians,

What about installing an XPI file :
1°) on Windows
2°) for all users
3°) targeting non ESR version of Firefox.

We have an MSI installer but install the XPI ONLY for the user that performs the installation.

Any pointers would be appreciated !

Thanks.

In recent versions of Firefox Linux (Ubuntu, Fedora, PopOS) we can place the extensions in this folder:

/usr/lib/firefox/browser/extensions/

I don’t guarantee it will work in an encapsulated version of Firefox, like snap or flatpak, but it works perfectly in Firefox .deb.