I created a classic
snap for an IDE to get access to the entire filesystem, build tools, libraries, headers. When opening a project directory via the UI, I get a “Choose Directory” dialog that lets me navigate my home folder to the project directory (e.g. /home/christian/projects/my_new_project
):
But when I acknowledge the path with “Select”, the resulting path will be /run/user/1000/doc/ed19bf8b/
. This is a bit confusing because all paths to source files are different now from the host. Also, the build system behaves differently in this path than in the original host path (it breaks because it cannot create lock files).
I can work around this by just entering the host path manually instead of using the directory-selection-dialog. But this will not always be possible.
How do I tell snapcraft to not use any sandboxing but behave as it would run on the host?