Custom folder access

The Chromium snap asks for home folder access. And it is sort of important otherwise it is impossible to upload files via browser.

But rather than giving full access, I would like to create special folder as a shared DMZ location for the browser.

How can I define new folder and give the snap an access to it?

that folder already exists under ~/snap/chromium/current/ … you can use it with the home plug disconnected …

Right, that’s clear.

But if I would like to have /home/<USER>/share/DMZ available to Chromium, how would I go about doing that?

you might be able to re-build the snap with home removed and a personal-files interface entry added perhaps … i’m not sure if personal-files implies home though … and indeed thats a one-time thing, your snap would have to be sideloaded with --dangerous and not upgrade anymore …

EDIT: alternatively bind mounting /home/<USER>/share/DMZ into ~/snap/chromium/common/ might work with disabled home interface …