Ubuntu snap install IDE 1.8.12 - access denied error: unable to access directory

Just posting a solution to a problem that I encountered through installing the snap package.
Couldn't find anything online.

Hi All,

After an hour of mucking around, thought I'd:
(1) share results of troubleshooting, and;
(2) highlight a potential bug in the snap package (unsure of the architecture)

I run a dual boot system (Ubuntu 20.04/Win10 v1909) and have the sketch library in a common location on /mnt/Data/Arduino/Sketches || D:/Arduino/Sketches so I can access the same sketch through either Operating System (arduino mounts external drives through /etc/fstab on boot, including /mnt/Data)

After a recent laptop change, I installed arduino 1.8.12 through the snap package.

It denied write access to any folder that was not on the same drive as the Arduino root directory. Am unsure if this is a bug as I'm unsure of the snap architecture. Also could not read any libraries that I'd saved to /mnt/Data/Downloads - probably the same source of the error.

I thought it was a Linux write permissions error and spent an hour chmodding and looking for the permission error.

Gave up, removed the snap package with sudo snap remove arduino and then downloaded the official package/compiled through sudo bash ./install.sh -> has write access to the /mnt folder as required.

(also looks as though arduino automatically adds the users to the dialout group now)

Just a heads up.

A

Doesn't Snap operate within a sandbox of some sort? I have always used the Linux package that can be downloaded from adriuno.io and it has always worked without any problems. I do not see the necessity to resort to Snap of Flatpack packages in this case.