Problem opening attached files in Evolution

If I get a message with an attached .pdf file, clicking on the attachment gives me this window:

The default program to view .pdf’s on my system is Okular, which does not even show up, and there is not way to navigate to it. If the attachment is a .docx, the result is a little better, because the window appears and LibreOffice, which is the default program on my system, is at least on the list. I would prefer that it would open a .docx file directly, without having to choose the program every time. In the case of .pdf’s, I would like the file to simply open in Okular when I click on it. How can I fix this?

Evolution version 3.54.1 (by Flathub.org)

Operating System: Feren OS 2023.04
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.15.0-125-generic (64-bit)
Graphics Platform: X11

Hi,
this is what flatpak does, not Evolution. There is a price of using the Flatpak, this is just one of them.

When you run in a terminal gio mime application/pdf then it’ll show you which applications are recognized by the glib library to handle that MIME type. I suppose the Okular is not in them, because thier .desktop file does not contain this mime type. You can see in the other .desktop files listed in the output of this command what they have set in the MimeType key of the [Desktop Entry] section of that file. That key should end with a ;, if I recall correctly.

If the Okulus has the type properly set, then it’s possible some MIME database was not updated for some reason. There’s an update-mime-database command for it, but I do not know how to run it, I’m sorry.

Bye,
Milan

Thanks Milan. I suppose I’ll go back to the non-flatpak version even though it’s quite old, in the end it will work better for me.