Ubuntu 22.04, Firefox installed with snap. Firefox is not able to open an html file (the documentation of an application) that is placed somewhere under /my/application/help/index.html (just to make an example). Trying to access
file:///my/application/help/index.html I get the following error in firefox page:
File not found
Firefox can’t find the file at /my/application/help/index.html.
Check the file name for capitalization or other typing errors.
Check to see if the file was moved, renamed or deleted.
If I understood correctly there is a restriction to access some local files done by snap configuration.
I tried with:
sudo snap set firefox confinement=classic
I tried to modify /var/lib/snapd/apparmor/profiles/snap.firefox.firefox adding a line:
/my/application/help r,
but I didn't solve the problem. Maybe I made some mistake. Could you point me to the correct way?