mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-21 08:23:48 -04:00
It's easy to end up with multiple flatpak installations on a system, and it's not always clear which one(s) flatpak is using. So this commit adds some debug output in some cases when flatpak opens an installation directory such as /var/lib/flatpak. This is especially important for people who build flatpak themselves because if you omit --prefix=/usr or use --with-system-install-dir your flatpak will look in non-standard locations like /usr/local/var/lib/flatpak. If we were to print this every time a flatpak directory is opened, it would flood the log. So instead add a utility function and use it strategically. Many flatpak commands will log the directory when they use flatpak_option_context_parse(), others in flatpak_find_deploy_for_ref(), and for others the logging has been added manually. Closes: #1067 Approved by: alexlarsson