Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How to add rows to "Files & Attachments" in Thunderbird > Preferences > General?

  • 4 réponses
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par ploconia

more options

How can I add rows to the "Files & Attachments" table in Thunderbird > Preferences > General?

I want to recreate this on my macbook pro running macOS Big Sur 11.6.4 and Thunderbird 91.6.2:

(see attached image)

How can I add rows to the "Files & Attachments" table in Thunderbird > Preferences > General? I want to recreate this on my macbook pro running macOS Big Sur 11.6.4 and Thunderbird 91.6.2: (see attached image)
Captures d’écran jointes

Solution choisie

These are defined in the file handlers dot json - Normally, when you open a new attachment, TB prompts for default and adds to the list. I encourage making a backup before editing, and only edit with TB not running.

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (4)

more options

Solution choisie

These are defined in the file handlers dot json - Normally, when you open a new attachment, TB prompts for default and adds to the list. I encourage making a backup before editing, and only edit with TB not running.

more options

david said

These are defined in the file handlers dot json - Normally, when you open a new attachment, TB prompts for default and adds to the list. I encourage making a backup before editing, and only edit with TB not running.

That got me over the hump, thank you, David.

I used the macOS find command to locate handlers (dot) json in a sub-folder /system/Volumes/Data/Users/myusername/Library/Thunderbird/Profiles. Closed Thunderbird app, used jsonlint (dot) com to expand the one-line JSON files into something readable, both on my iMac (source) and macbook (destination) computers. The bit that needed copied from source -> destination was this:

               ,
               "https": {
                       "action": 2,
                       "handlers": [{
                               "name": "Firefox",
                               "path": "/Applications/Firefox.app"
                       }]
               },
               "http": {
                       "action": 2,
                       "handlers": [{
                               "name": "Firefox",
                               "path": "/Applications/Firefox.app"
                       }]
               }

Note: that leading comma is important. After copying in that JSON I copied the entire handlers (dot) json file into jsonlint again to validate I didn't miss anything -- like a comma, say -- and saved the file before restarting Tbird app. This got the two rows into the table in Files & Attachments as in my first image attached hereto.

That got me very close, but not all the way there. The Always ask part didn't work; I think this has been my fundamental malfunction. That was easy to fix by way of the Thunderbird UI, as seen in the second and third images, where I clicked the pulldown in the Action column and changed Always ask to Use other... from which I could select the FireFox app. :)

I think maybe that last step could have been eliminated with another value than 2 in the action field in the JSON file but I'll leave that as an exercise for the reader ;)

The bottom line: everything works fine on my macbook now and Chrome is the default browser everywhere except in Thunderbird.

Thanks again!

more options

Thanks for the followup. Your response is a keeper (as I have never edited it myself). I'm glad all is well. david

more options

This is how I solved it:

{

   "defaultHandlersVersion": {},
   "mimeTypes": {
       "application/pdf": {
           "action": 2,
           "handlers": [
               {
                   "name": "msedge.exe",
                   "path": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
               }
           ],
           "extensions": [
               "pdf"
           ]
       }
   },
   "schemes": {
       "http": {
           "action": 2,
           "handlers": [
               {
                   "name": "FirefoxPortable.exe",
                   "path": "C:\\Users\\xxxxx\\FirefoxPortable\\FirefoxPortable.exe"
               }
           ]
       },
       "https": {
           "action": 2,
           "handlers": [
               {
                   "name": "FirefoxPortable.exe",
                   "path": "C:\\Users\\xxxxx\\FirefoxPortable\\FirefoxPortable.exe"
               }
           ]
       }
   }

}