[Suggestion] Change the implemenation of --home option #2128
Orange-Icepop
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem description
--homecurrently changes$HOMEinside the container but keeps the mount/home/username:/home/usernamefixed. This is problematic: some software ignore$HOMEand hardcode/home/$USER, so they end up writing configs to the host’s home directory. This mixes up the host and the containers' configs, leading to compatibility issues.Solution
Change
--homeso that the mount point/home/usernameis mapped to the user-specified host path instead.Alternative solution
Allow users to edit (at least parts of) the container config directly. That would solve several other issues too, though it’s less user‑friendly.
Other comments
I know Distrobox isn’t meant to be a sandbox, but this directly hurts day‑to‑day usability. Fixing it would also bring a nice safety benefit.
All reactions