Bonjourr
Bonjourr copied to clipboard
install default config for new users
Is your feature request related to a problem? Please describe. I install bonjourr system wide for firefox by deploying the xpi in users directory. But the default configuration is not the one wanted. In particular, we want shortcuts to academic servers in page
Describe the solution you'd like possibility that the exported json should be used as a default config file for new user
Describe alternatives you've considered installing system wide config for an extension in firefox is not possible modyfying the extensions.json is too risky and it's clumsy
The extent of my knowledge on .xpi and firefox profiles is this guide: https://extensionworkshop.com/documentation/publish/distribute-sideloading/
Are you able to add or modify files inside the .xpi ?
For example, would it be possible to add a settings.json
file directly in the .xpi ?
I can think of 3 possibilities (none tested):
- Create an Enterprise Policy. See https://support.mozilla.org/kb/enforcing-policies-firefox-enterprise - You can also use an extension to simplify the process: https://addons.mozilla.org/firefox/addon/enterprise-policy-generator/
- Use a system-wide Firefox profile that is synced.
- As Victor mentioned, add a
settings.json
file to the.xpi
, sign and publish as a private extension, and distribute to your enterprise (assuming the license permits this, but since Victor suggested it, I'm guessing it does!).
Thank you for your explanations; I'm not sure about the settings.json format I should put in the .xpi and it means I must create an account to sign the .xpi on addons.mozilla.org. Should be done, but really not easy. An integration into pref.js would have been much easier, but it seems not to be possible. Thanks for your answers. I will investigate
You're welcome.
Yes, to my knowledge, signing the xpi still requires creating an account. But at least it's free for Firefox.
I'm not sure why an account is required... I used to know, but that knowledge got pushed out for new knowledge. ;) IIRC, it's to reduce (but obviously not eliminate) the proliferation of bad xpi's.
The other problem with the creation of my own xpi is that I must upgrade each time bonjourr is updated. Very bad new AFAIK. The absence of global tools for customizing plugin parameters inside firefox is painfull.