Score:1

Teach Firefox snap on 22.04 which applications are available to open which files, with PDF as an example

jp flag

With firefox from snap on a freshly installed Ubuntu 22.04, the browser does not know any application to open a pdf.

I have configured 'always ask' and get the dialogs shown below when clicking on a pdf. Since evince and qpdfview are installed, they should appear in the 'Select Application' dialog.

Question: Can anyone explain where firefox learns which applications are available and how this can be fixed?

While this answer discusses possibilities to get evince to work in firefox, I am interested in the more fundamental question of how firefox learns which applications may be used to open what?

Further snap firefox apparmor profiles are probably related. In /var/lib/snapd/apparmor/profiles there are 7 files with firefox in the name, totaling 11953 lines. :-/

Please don't get distracted by 'localhost' and 'http' as the pdf source. The same happens with downloads from public site with https and valid certificates. enter image description here

Harald avatar
jp flag
I wonder if getting rid of snap-firefox and install via apt is the only solution here.
Harald avatar
jp flag
https://askubuntu.com/a/1428798/367444 may be related, but i don't even get `evince` shown as one option and cannot even configure it to be used in firefox settings.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.