mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-12 10:08:31 -04:00
Now that we read remotes from $datadir/flatpaks/remotes.d as well as /etc/flatpaks/remotes.d, we should have a mechanism to redirect this, as we do for almost all other filesystem path locations. To avoid an explosion of new variables, we introduce FLATPAK_DATA_DIR to represent configuration that ships with the operating system. This is useful: - To fix sandboxing of tests - When installing using flatpak into a chroot, so that we read the chroot's configuration rather than the host. It also is used when reading triggers, but the current FLATPAK_TRIGGERSDIR is left for compatibility. Co-authored-by: Sebastian Wick <sebastian.wick@redhat.com>