Page 1 of 1

[SOLVED] Activate an xpi Firefox plugin

Published: October 11, 2021 - 1:55 PM
by Patrice_minagri
Hello,

I'd like to know if any of you have had to automatically install a plugin (XPI file) to Firefox via WAPT?

For me, the plugin installation went smoothly; Firefox recognized it after the package ran. However, the plugin is disabled by default and needs to be activated manually.

Do you think it's possible to automatically activate the plugin after installation (via WAPT, of course)?

Thank you for your help.

Patrice

Re: Activate an xpi Firefox plugin

Published: October 11, 2021 - 4:02 PM
by florentR2
Good morning,
I've never tested it with a file:// URL, but via policies.json you can provide a web URL like this and the extension is indeed activated:

Code: Select all

"ExtensionSettings": {
      "uBlock0@raymondhill.net": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/file/3719054/ublock_originXXX.xpi",
        "installation_mode": "normal_installed"
      }
    }

Re: Activate an xpi Firefox plugin

Published: October 11, 2021 - 4:12 PM
by Patrice_minagri
Oh, thank you for the tip.

I'll take a closer look at that. :P