wslu is not taking DESTDIR into account when loading config file #264
Labels
Bug
This is either an issue that describes a bug or a PR that resolves a bug
Status: Patched
This is fixed and is part of a released version.
Target: 4.x
This is targeted to the 4.x release.
Windows Version
Windows 11
Windows Build Number
10.0.22621.1105
WSL Version
WSL 2
Distro Version
NixOS
WSL Utilities Version
4.1.1
Describe the bug
NixOS is using DESTDIR variable to install the conf file into a none standard location (eg
/nix/store/f9w6sa74xk0hymrbz2mrm4r9hfvns6fp-wslu-4.1.1/etc/wslu/conf
). By default utilities like wslvar will not find it and miss a default value forWSLVAR_DEFAULT_VARTYPE
, those a command likewslvar USERNAME
fails with[error] Invalid variable type. Aborted.
.Steps to Reproduce
Run the following on NixOS unstable in WSL.
Expected behavior
DESTDIR should be used to find the fallback config in the nix store if the usual locations do not yield a result.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: