Give a Flapak app read-write access to its own internal file system

Olof Nord olof.nord at tutanota.com
Mon Jan 31 20:40:23 UTC 2022


Hello Flatpak devs!

I have a demo application[1], which during initial startup, extracts some archives inside the Flatpak.

Is there any flags/ways of giving the application write access to its own internal file system?
In my case to "/app/bin/resources".
This folder does not exist during build, but is created at startup.

Currently, I receive the following error message during startup: 
"unlinkat /app/bin/resources: read-only file system".

The files are only relevant to the application itself, there is no need to access them from outside.

I have found "--sandbox-expose" to expose read-write access to a file, but this argument isn't valid as a finish-args, and using "--filesystem" isn't really applicable as the folder exists only inside the Flatpak itself (It also does not address the problem, I have tried).

Using Flatpak 1.12.4, flatpak-builder 1.2.2.

Any advice or further information would be greatly appreciated!

Cheers,Olof Nord

[1] https://gitlab.com/olof-nord/go-astilectron-flatpak-demo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20220131/bbe0e481/attachment.htm>


More information about the Flatpak mailing list