There is a snapd interface for this (system-packages-doc¹), but it only grants read access to /usr/share/doc, not /usr/local/doc.
I wonder if the snapd folks would be interested in extending the interface to grant read access to /usr/local/doc, too? ¹ https://snapcraft.io/docs/the-system-package-doc-interface ** Also affects: snapd Importance: Undecided Status: New ** Changed in: chromium-browser (Ubuntu) Status: New => Confirmed ** Changed in: chromium-browser (Ubuntu) Importance: Undecided => Low ** Changed in: firefox (Ubuntu) Status: New => Confirmed ** Changed in: firefox (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/1955325 Title: Firefox cannot open files in /usr/local/doc Status in snapd: New Status in chromium-browser package in Ubuntu: Confirmed Status in firefox package in Ubuntu: Confirmed Bug description: Both Firefox and Chromium in Ubuntu 21.10 cannot open files in /usr/local/doc and show a File-not-found error. IMO this is a bug because this directory often contains HTML files from locally installed software that now cannot be browsed with these HTML browsers anymore. The cause is probably the apparmor configuration in /var/lib/snapd/apparmor/profiles/snap.firefox.firefox, which contains a read permission for /usr/doc, but not for /usr/local/doc. To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1955325/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp