Bonjourr icon indicating copy to clipboard operation
Bonjourr copied to clipboard

install default config for new users

Open swirly opened this issue 2 years ago • 5 comments

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

swirly avatar Feb 18 '23 13:02 swirly

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 ?

victrme avatar Feb 19 '23 10:02 victrme

I can think of 3 possibilities (none tested):

  1. 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/
  2. Use a system-wide Firefox profile that is synced.
  3. 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!).

Gitoffthelawn avatar Feb 19 '23 14:02 Gitoffthelawn

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

swirly avatar Feb 21 '23 11:02 swirly

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.

Gitoffthelawn avatar Feb 21 '23 18:02 Gitoffthelawn

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.

swirly avatar Feb 22 '23 14:02 swirly