Score:1

Document Viewer (Evince) fails to open hyperlinks in a PDF document

cn flag

While viewing a PDF document in evince, clicking on a hyperlink (a web link in this case) causes the cursor to change to a rotating 'busy' symbol and the browser is not launched. Using dmesg to view errors, I see the errors below. This began about a month ago. I'm not aware I have changed anything in my configuration. Ubuntu 21.10 fully updated. Brave browser (1.32.113) is default.

[32979.539575] audit: type=1400 audit(1638841732.708:94): apparmor="DENIED" operation="exec" profile="/usr/bin/evince//sanitized_helper" name="/opt/brave.com/brave/chrome_crashpad_handler" pid=39499 comm="brave" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
[32979.539807] traps: brave[39499] trap int3 ip:5616e1a1c3c1 sp:7ffe260ee8a0 error:0 in brave[5616dd77b000+9d5e000]
Score:0
ps flag

This is a known issue with apparmor and evince, and the gnome devs believe that since it is a problem with apparmor, it doesn't fall within their responsibilites. So it's upto the users/distros to set the apparmor profiles correctly.

See this issue on gnome's gitlab: https://gitlab.gnome.org/GNOME/evince/-/issues/1090

I had the same problem and either this post fixed it: https://askubuntu.com/a/1214362/1554738

or because I disabled the apparmor profile for evince https://help.ubuntu.com/community/AppArmor

I used the following command from there to disable the apparmor profile:

Disable one profile


sudo ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/profile.name

You have to restart your computer after.

Kvothe avatar
cn flag
I get `File /etc/apparmor.d/profile.name not found, skipping...` (Ubuntu 20.04)
Kvothe avatar
cn flag
The following worked for me: `sudo ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable/ sudo apparmor_parser -R /etc/apparmor.d/disable/usr.bin.evince`, see https://linuxconfig.org/how-to-disable-apparmor-on-ubuntu-20-04-focal-fossa-linux.
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.