How to automatically configure custom extension in Mozilla Firefox 91.4.0esr.
Hello all,
I've been trying to automatically configure the Firefox to start with the custom extension, but with no success. The extension is working if I select the manifest.json from the about:debugging temporary add button. Or when I try to upload the xpi file from my computer. The environment that I'm currently working on is Linux with RedHat distribution 7.9.
I have he following configuration directories:
- Bulleted list item /usr/lib64/firefox/defaults/pref/autoconfig.js which contains the following properties(pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
pref("general.config.obscure_value", 0); pref("general.config.filename", "firefox.cfg");
- Bulleted list item /usr/lib64/firefox/firefox.cfg which contains the following properties:
pref("extensions.autoDisableScopes", 0); pref("extensions.enabledScopes", 15);
The custom extensions is packed in an .xpi file which is located in /home/<user>/.mozilla/extensions/preventrightclick/preventrightclick.xpi
The content of the preventrightclick.xpi is in the images below. I've tried multiple locations for this xpi in order to be automatically installed, such as: /usr/share/mozilla/extensions/preventrightclick/preventrightclick.xpi /home/<user>/.mozilla/firefox/<profileId>/extensions/preventrightclick.xpi Nothing worked, strange is that the extensions can be installed manually.
If you have any clues, or what could I try, please let me know. Thanks!