Score:1

Evince can not open links in snap Firefox

va flag

When I click on a link in a PDF document in Evince, it does not work. Instead, I only see cursor turning into a spinner and a message appearing in the terminal:

env: ‘/snap/bin/firefox’: Permission denied

The closest thing I have found is the following bug report for evince itself https://gitlab.gnome.org/GNOME/evince/-/issues/1090

which suggests the problem is in the AppArmor profiles that do not allow Evince to run programs in the home directory.

How can I solve this?

I use Ubuntu 21.10 with Firefor installed from Snaps

FedKad avatar
cn flag
Is this problem due to Evince being a snap or Firefox being a snap? I think in your case, it is the second.
Ilya Popov avatar
va flag
@FedKad Firefox is a snap, Evince is deb from Ubuntu repositories
FedKad avatar
cn flag
Then, remove the snap version of Firefox and install the "apt" (deb) version. You may need to save and reuse the "profile folder" of Firefox though!
vanadium avatar
cn flag
@FedKad that is just a workaround that will not be applicable anymore for the next Ubuntu release.
vanadium avatar
cn flag
Can you provide detail on the type of link? Is this a www URL, or a link to a local file?
Ilya Popov avatar
va flag
This is a web URL link.
Score:1
pl flag

Try uninstalling Evince from APT and installing it from Snap:

sudo apt remote evince
sudo snap install evince

You may need to log out and in again. You may also need to reconfigure the file type associations.

This was suggested in the bug report discussion. Apparently, at the moment, you need either Evince and your browser from APT, or both from snap.

MakisH avatar
pl flag
Update: I reverted to Evince from apt, as I then had other issues integrating with the rest of the system.
MakisH avatar
pl flag
Update 2: In case that is an option for you to consider another PDF reader, Okular from APT works just fine.
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.