mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-22 17:03:54 -04:00
If the app is explictitly given access to a subdirectory of one of the xdg config/cache/data directories, with read-write (or create) access, then also bind-mount that directory into the corresponding .var/app/$APPID directory. This allows apps that want it to keep re-using global directories for storing per-app information. For instance, if your app uses "~/.config/foo" to store configuration data, then you can use --filesystem=xdg-config/foo, which will look for the directory, and if it exist, let the app access it, as well as mirror the content in ~/.var/app/$appid/config/foo. You can also use a ":create" to enforce the directory to be created and thus always do the mapping.