mirror of
https://github.com/flatpak/flatpak.git
synced 2026-02-05 13:31:32 -05:00
We used to only expose symlinks if the path to one was explicitly exposed, like --filesystem=/symlink, but if you did say --filesystem=/symlink/dir, then we would make /symlink be a regular directory in the sandbox tmpfs. This means all exports are fully resolved, which allows use to remove the workaround for symlinks that we had with sorting by "level". We also add a FAKE_MODE_DIR, which is used to ensure the homedir is there, created on tmpfs if needed only, while handling symlinks correctly. This means that flatpak works well even if $HOME is on a symlink.