Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] XDG_ env variables still not being set when created with --home #1429

Open
BvngeeCord opened this issue Jun 3, 2024 · 1 comment
Open
Labels
bug Something isn't working wait-on-user waiting for a reply

Comments

@BvngeeCord
Copy link

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.

  1. first I ran distrobox create -i docker.io/library/debian:stable-backports -n Debian --hostname debian --home ~/distrobox/debian-home --nvidia
  2. 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
@BvngeeCord BvngeeCord added the bug Something isn't working label Jun 3, 2024
@89luca89
Copy link
Owner

This works for me:

image

Can you try with latest git version?

@89luca89 89luca89 added the wait-on-user waiting for a reply label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wait-on-user waiting for a reply
Projects
None yet
Development

No branches or pull requests

2 participants