Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Global add-on install in Thunderbird

  • 7 risposte
  • 1 ha questo problema
  • 3 visualizzazioni
  • Ultima risposta di max110

more options

I am desperately trying to provide Thunderbird with a certain set of extensions pre-installed for all users (for example language packs). This technique works in Firefox acceptably well: it is sufficient to store the xpi files named after the extension_ID in the %programfolder%\distribution\extensions folder Whatever I am trying in Thunderbird, no add-on ever load, and I cannot find any recent documentation online. If I place the xpi files in the <profilefolder>\extensions this works perfectly. How do I provide them to all users at once??

I am desperately trying to provide Thunderbird with a certain set of extensions pre-installed for all users (for example language packs). This technique works in Firefox acceptably well: it is sufficient to store the xpi files named after the extension_ID in the %programfolder%\distribution\extensions folder Whatever I am trying in Thunderbird, no add-on ever load, and I cannot find any recent documentation online. If I place the xpi files in the <profilefolder>\extensions this works perfectly. How do I provide them to all users at once??

Soluzione scelta

So I understand now that I shall "improve" my policies.json file to instruct ThunderBird to install specific addons automatically when a user starts the program. I have been struggling a couple of hours, and I still could not figure out how my policies.json file shall be. I have been searching around for examples, without finding anything. I am trying to provide 3 language packs: Russian, German and Italian. My policies.json file is down here, and for what I can understand it should be working (AppUpdate is disabled). Can anybody instruct me, what I am doing wrong?

  1. # # # # # #

{

 "manifest_version": 2,
 "policies": {
   "DisableAppUpdate": true,
   "ExtensionUpdate": true,
   "ExtensionSettings": {
   "*": {
       "blocked_install_message": "This extension is NOT allowed by you System Administrator",
       "install_sources": ["about:addons","https://addons.thunderbird.net/"],
       "installation_mode": "allowed",
       "allowed_types": ["extension","theme","dictionary","locale"]
     },
     "langpack-it@thunderbird.mozilla.org": {
       "installation_mode": "force_installed",
       "install_url": "https://addons.thunderbird.net/thunderbird/downloads/latest/tb-langpack-it/addon-640746-latest.xpi"
     },
     "langpack-de@thunderbird.mozilla.org": {
       "installation_mode": "force_installed",
       "install_url": "https://addons.thunderbird.net/thunderbird/downloads/latest/tb-langpack-de/addon-640754-latest.xpi"
     },
     "langpack-ru@thunderbird.mozilla.org": {
       "installation_mode": "force_installed",
       "install_url": "https://addons.thunderbird.net/thunderbird/downloads/latest/tb-langpack-ru/addon-640736-latest.xpi"
     }
   }
 }

}

Leggere questa risposta nel contesto 👍 0

Tutte le risposte (7)

more options

I'm currently doing the same thing, just for Firefox on Linux. I asked a question here on this subject, and found the solution myself. Read it, maybe it will help you solve your problem: https://support.mozilla.org/ru/questions/1364066 Note that manifest.json must contain the extension ID. Run Thunderbird with the --jsconsole command line option to see if there are any errors loading the extension.

Here's more useful information I found: https://unix.stackexchange.com/questions/559653/install-thunderbird-extension-globally https://support.mozilla.org/en-US/questions/1130750

more options

I'm currently doing the same thing, just for Firefox on Linux. I asked a question here on this subject, and found the solution myself. Read it, maybe it will help you solve your problem: https://support.mozilla.org/ru/questions/1364066 Note that manifest.json must contain the extension ID. Run Thunderbird with the --jsconsole command line option to see if there are any errors loading the extension.

Here's more useful information I found: https://unix.stackexchange.com/questions/559653/install-thunderbird-extension-globally https://support.mozilla.org/en-US/questions/1130750

more options

Well, this at least gives me a direction to search. I already have a <setupfolder>/distribution/policies.json file that works fine (disabling automatic updates and some other stuff).

What I find in the linked posts suggests to place a

<setupfolder>/distribution/extensions/manifest.json

file with some extension related stuff inside. We should note that this is the same place where the xpi of my extension is placed, the same xpi that Thunderbird should read and add to extensions. Let us say that I want do provide Russian language pack to all users that will start Thunderbird. In this place I would have a file named

<setupfolder>/distribution/extensions/langpack-ru@thunderbird.mozilla.org

which already contains its corresponding json.

If I do this the jsconsole throws:

1642237885402 addons.xpi WARN Ignoring distribution: not an XPI: C:\Program Files\Mozilla\ThunderBird\distribution\extensions\manifest.json

which makes me think that Thunderbird only likes XPI files in this place (which also makes much sense). So probably this is a good step into the right direction, but still I am not able to provide any addon to all users :(

more options

You can join the Thunderbird Enterprise mailing list on Topicbox to ask your question there. https://thunderbird.topicbox.com/groups/enterprise

Also see https://enterprise.thunderbird.net/

more options

I would gladly do it. I even make recurring donations to Thunderbird!! But where shall I exactly ask this specific question?

more options
more options

Soluzione scelta

So I understand now that I shall "improve" my policies.json file to instruct ThunderBird to install specific addons automatically when a user starts the program. I have been struggling a couple of hours, and I still could not figure out how my policies.json file shall be. I have been searching around for examples, without finding anything. I am trying to provide 3 language packs: Russian, German and Italian. My policies.json file is down here, and for what I can understand it should be working (AppUpdate is disabled). Can anybody instruct me, what I am doing wrong?

  1. # # # # # #

{

 "manifest_version": 2,
 "policies": {
   "DisableAppUpdate": true,
   "ExtensionUpdate": true,
   "ExtensionSettings": {
   "*": {
       "blocked_install_message": "This extension is NOT allowed by you System Administrator",
       "install_sources": ["about:addons","https://addons.thunderbird.net/"],
       "installation_mode": "allowed",
       "allowed_types": ["extension","theme","dictionary","locale"]
     },
     "langpack-it@thunderbird.mozilla.org": {
       "installation_mode": "force_installed",
       "install_url": "https://addons.thunderbird.net/thunderbird/downloads/latest/tb-langpack-it/addon-640746-latest.xpi"
     },
     "langpack-de@thunderbird.mozilla.org": {
       "installation_mode": "force_installed",
       "install_url": "https://addons.thunderbird.net/thunderbird/downloads/latest/tb-langpack-de/addon-640754-latest.xpi"
     },
     "langpack-ru@thunderbird.mozilla.org": {
       "installation_mode": "force_installed",
       "install_url": "https://addons.thunderbird.net/thunderbird/downloads/latest/tb-langpack-ru/addon-640736-latest.xpi"
     }
   }
 }

}