VSCodium permissions: hidden folders in ~

VS Codium, as most of you know, is a software development application, yet the flatpak app has some restrictions that seem to defeat its purpose. Let’s say that I can live with not being allowed to run sudo commands (does anyone know of a trick that’ll allow that?), but it seems that I can’t even access hidden folders and files in ~ from within VSCodium. How can I fix that? I tried tweaking some settings in Flatseal, to no avail (see below). What am I doing wrong? Is this even possible?

How are you trying to access hidden folders? I can see them both in the left hand sidebar, and in the ‘Open folder’ dialog (though there I need to press Ctrl-H to show them).

I think the filesystem=host permission, which VS Codium has by default, effectively includes filesystem=home, which you’ve enabled in your screenshot. So it makes sense that changing that doesn’t affect it.

How do you explain this:

In the background is the VSCodium terminal, and superimposed is the host terminal. How can this be fixed?

The ~/.var/app folder is where Flatpak itself stores application data & caches for each app, so each app can only see its own data. This is something of a special case among hidden folders. It’s like that by design, and I don’t know of an option that will let one application see the folders of other applications (although I’m not an expert in Flatpak settings, maybe there is one :person_shrugging: ).

If I run with the filesystem=host-os permission to get access to the mount command, I can see how it’s achieving this: ~/.var/app is mounted as a tmpfs, and then ~/.var/app/com.vscodium.codium is bind-mounted inside that.

Thank you! I just wanted to make sure I wasn’t doing anything wrong. Now that you’ve explained away this … oddity, I am finally at peace.