So, I have two hard disks: one smaller SSD and a bigger HDD in my laptop. I mounted the SSD as the root / partition and the HDD under /data. But when I try to open a document located in /data/Documents with LibreOffice, he says he can’t find the file?
Also, when I click the “Open” option in the “File” menu, and try to nagivate to the document I want to open the whole /data partition isn’t even listed in the file explorer. (but visible in normal Nautilus) Is this a limitation of Snap or a bug in LibreOffice?
This is a limitation of Snap, by default the home interface only allows access to the home directory excluding the hidden files right under it, and the manually connected removable-media interface only allows access under /media/* and /run/media/*.
well, actual removable media typically gets mounted under /media/<user>/<devicename> if you mount it in /media/<devicename> you should be fine … it is media after all
alternatively you could add a bind mount from /data to something like $HOME/data that will work as well … snapd wont allow other dirs currently.
I installed Ubuntu 20.04 yesterday.
I have the exact same problem with Gimp, Inkscape and Mattermost: I got two HD, impossible for those apps to access files in /data.
What I don’t understand is that Telegram, Skype, or Visual Studio (also installed as snaps) are able to access files on /data.