9

When I try to open a PDF file from an attachment in an email in Thunderbird, I only get a few applications and none of them are appropriate to open PDF files:

enter image description here

When I save the file to my HD, it opens by default with the correct application (Document Viewer) and I can also choose a lot of other applications:

enter image description here

Edit: When I go to Preferences -> Attachments -> Incoming I don't see any filetypes that I can set any action for:

enter image description here

Why can't I open this file with the correct application from Thunderbird? How to fix this?

gitaarik
  • 713
  • 6
  • 12
  • 1
    Go to Preferences / Attachments / Incoming. You should be able to select "Document Viewer" next to PDF documents. – Jos Jan 10 '19 at 12:45
  • @Jos thanks for the reply, I did find the Preferences -> Attachments screen but it was default on the "Outgoing" tab and I didn't even notices the tabs, they are very easy to overlook. Anyway, in this tab I couldn't do anything useful either, see my updated answer and added screenshot. – gitaarik Jan 10 '19 at 13:51
  • There should be a file `handlers.json` in your profile directory which contains defaults for incoming files. If there isn't (or if it's empty), create a new user profile and copy over the `handlers.json` file from there to your original profile directory. – Jos Jan 10 '19 at 13:58
  • 1
    Your incoming tab is empty because you haven't set any defaults for any filetypes. If you set the default for PDFs as e.g. calculator, then PDF files should show up in the incoming tab. – mrp May 23 '19 at 16:44
  • @mrp where do you set these defaults? – gitaarik May 23 '19 at 18:28
  • @mrp I'm stuck at the same problem. How can you set the defaults? (I already set a default when opening pdfs files directly form nautilus, but that does not appear to be what you're talking about.) – flawr Oct 04 '19 at 10:12

1 Answers1

7

Did you install thunderbird via snap? I had the same issue.

After deleting the snap instance and reinstalling via

apt-get install thunderbird

it worked well.

(Be aware: deleting the snap instance will automatically delete all the data, so backup your emails before doing that!)

cleary
  • 674
  • 4
  • 19
user3619358
  • 86
  • 1
  • 2
  • 1
    This is just absurd how few litterature can be found of the subject. Snap really messes with basic features, I'm baffled. – pHneutre Jun 25 '20 at 10:19
  • I have the same problem, and i have installed Thunderbird using flatpack, because I need a version newer than the (very old) version found in the system's package manager. I have the preference set right, but double clicking the pdf attachment does not launch the pdf viewer. I tired to look for some specific setting in "Flatseal", but I found nothing relevant... – Fabio Jun 15 '22 at 08:16