When XDG env variables are set, devbox still creates some files in non-XDG directories

This issue has been tracked since 2023-01-06.

Two examples reported by a user on Discord:

  1. .cache/devbox/bin/ where the devbox binaries are stored. I think this is because our launcher script is not respecting XDG even though most of the devbox binary itself is.

  2. The .nix-profile symlink. We need to investigate whether nix itself could follow XDG since underneath the covers we're relying on it.

Lagoja wrote this answer on 2023-03-15
  1. I think this is low priority, but would be good for consistency.
  2. Since the new installer can respect XDG, we should see if we can use that. I guess one question is whether we would migrate users who are not currently respecting XDG, or if we'd just maintain backwards compatibility
gcurtis wrote this answer on 2023-03-15
  • Since the new installer can respect XDG, we should see if we can use that. I guess one question is whether we would migrate users who are not currently respecting XDG, or if we'd just maintain backwards compatibility

I did try enabling XDG in Nix before running the installer, but it ended up breaking things. I didn't spend much time trying to figure out why, so this would require a bit of debugging work. Nix might just need the ~/.nix-profile symlink for backwards compatibility for a while.

More Details About Repo
Owner Name jetpack-io
Repo Name devbox
Full Name jetpack-io/devbox
Language Go
Created Date 2022-08-18
Updated Date 2023-03-31
Star Count 4960
Watcher Count 19
Fork Count 68
Issue Count 42

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date