I'm working on a customized LiveCD and would like to provide Firefox including a few extensions pre-installed. The steps of LiveCD customization are done within a self-written .sh-script.
I found this question where an approach for my requirement is discussed.
Following that approach, what I did then via chroot
in path edit/
is:
- Download the XPI file I want to have installed.
- Unzip it.
- Read the extension ID in manifest.json (a string like this
'id': '{idstring}'
). - Create a folder
{idstring}
in/usr/share/mozilla/extensions
and insert all files retrieved by unzipping the XPI file.
Unfortunately, when I test the generated ISO file and run firefox, the extension is not available and is also not installed on startup of firefox.
How can I add an extension to firefox for the LiveCD via a .sh-script? If there are several approaches, I would prefer if the installation is already finished when running firefox on the LiveCD for the first time.
Thanks for your help!
Edit: While after performing the procedure mentioned above the extensions are available in path edit/usr/share/mozilla/extensions
in folder {idstring}
and therefore should be included in the created LiveCD, I can't find them when booting from the LiveCD.
What am I missing here?
If you need additional information, just let me know.