[Bug] XDG_ env variables still not being set when created with --home
The problem I'm having is the exact same as in #420: With a --home set during distrobox-create, XDG_CONFIG_HOME and related env variables are still relative to the host's home dir. I see a fix was implemented here in this commit, and I've manually double checked that that code snippet is present in my version of distrobox, but for whatever reason the issue persists. I have no idea why.
- first I ran
distrobox create -i docker.io/library/debian:stable-backports -n Debian --hostname debian --home ~/distrobox/debian-home --nvidia distrobox enter Debian
debian% echo $HOME
/home/<user>/distrobox/debian-home
debian% echo $XDG_CONFIG_HOME
/home/<user>/.config
Expected behavior
debian% echo $HOME
/home/<user>/distrobox/debian-home
debian% echo $XDG_CONFIG_HOME
/home/<user>/distrobox/debian-home/.config
Logs
podman logs --latest: podman_latest.txt
Desktop:
- Are you using podman, docker or lilipod? podman
- Which version or podman, docker or lilipod? podman version 5.0.3
- Which version of distrobox? distrobox: 1.7.2.1
- Which host distribution? NixOS
- How did you install distrobox? via the nixpkgs package
This works for me:
Can you try with latest git version?
This works for me: ... Can you try with latest git version?
Yup, I just cloned the distrobox repo from git and ran the exact same command that you did:
@BvngeeCord thanks for trying!
Strange, it seems probably there is something in either your profile or dotfiles setting them?
Can you try with distrobox enter --dry-run and see if the env is set correctly?
@BvngeeCord thanks for trying!
Strange, it seems probably there is something in either your profile or dotfiles setting them?
Can you try with
distrobox enter --dry-runand see if theenvis set correctly?
Yup! This is interesting..
@Bvngee I think if that's the case then it's not a distrobox problem, but you have something (like dotfiles or configs) setting those variables for you AFTER the login