Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install default config for new users #172

Open
swirly opened this issue Feb 18, 2023 · 5 comments
Open

install default config for new users #172

swirly opened this issue Feb 18, 2023 · 5 comments
Labels
enhancement New feature or request Planned This will be done in a future update

Comments

@swirly
Copy link

swirly commented Feb 18, 2023

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

@victrme
Copy link
Owner

victrme commented Feb 19, 2023

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 ?

@Gitoffthelawn
Copy link
Contributor

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!).

@swirly
Copy link
Author

swirly commented Feb 21, 2023

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

@Gitoffthelawn
Copy link
Contributor

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.

@swirly
Copy link
Author

swirly commented Feb 22, 2023

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.

@victrme victrme added enhancement New feature or request Planned This will be done in a future update labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Planned This will be done in a future update
Projects
None yet
Development

No branches or pull requests

3 participants