Today after reboot distrobox was no longer working. Took me some hours to understand what went wrong.
First I could enter a distrobox only once, next time when I wanted to enter I got a message that user manfred was not found in distrobox.
For whatever reason podman now wants to use ~/.config/containers instead of ~/.local/share/containers
I tested things by rebuilding a distrobox and it didn’t work ok because the stuff in ~/.config/containers wasn’t labelled correctly (from an SELinux perspective).
Does anybody have an idea where the new location might be setup?
Found it. I had dealed with my shell config and set XDG_DATA_HOME to $HOME/.config.
This caused podman to look at ~/.config/containers instead of ~/.local/share/containers and caused podman info to show its information accordingly. So I deleted XDG_DATA_HOME and all is working again.
The XDG env vars are not really named well and can be confusing to use correctly. They are documented at Environment variables. They also document the intended default values which can help.
FWIW, I have learned over the years to make minimal changes to these even though my preference is to be explicit. When moving between distros the env var settings remain more portable - e.g., between Fedora variants on my laptop and Raspberry OS (debian based).