-
Notifications
You must be signed in to change notification settings - Fork 826
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
bash $PATH includes native Windows path(work around "AppendNtPath"=dword:00000000 *Not working*) #2048
Comments
"AppendNtPath"=dword:00000000 (#1493) is working for root user. |
Thanks for reporting the issue. There's been some shuffling around of registry key paths and setting for insider builds. Adding @benhillis to comment. |
There is some feature development in progress so for now I'd suggest manually setting your PATH variable in your .bashrc file to work around this. This will be resolved in a future insider build. |
yes as workaround I am using the .bashrc file, hope future build fixes this. |
Would that feature be a gui that allows to enable/disable this behavior? |
@MikeGitb - yes, either a GUI or a command line tool to toggle this and other configuration options. |
@benhillis: My post was actually meant half humorous, but that is great to hear! Can't wait for the next Win10 release ;) |
@MikeGitb - be careful what you wish for! |
I've checked in a fix for this issue, it will be in an upcoming Insider build. |
@ztolley - Thanks for the reminder. This registry key only applies to the legacy distribution (the one installed by lxrun.exe). With the addition of Store distributions the mechanism was changed to a per-distro setting. There was a plan to add a configuration UI to change various distribution settings but unfortunately that work didn't make the cut for this release. In the meantime there is a global override that you can set to disable appending the NT path for all WSL distributions machine wide: Create a .reg file with these contents and import it:
To turn this behavior back on, remove the registry value. I'll make sure we get this workaround documented before Fall Creator's Update ships. |
@benhillis Was this ever documented? If so, where is it located at? Had to do a bunch of searching through older issues to eventually find my way here. |
@benhillis is the |
@thecodejunkie – Working on my side with Ubuntu from the store. |
I love WSL, but I do feel it needs things like this documented so I don't have to keep coming back this GitHub issue to remember how to do it :) |
Seems like this is still a problem. The registry patch worked. |
in windows insider build: 16184 "AppendNtPath"=dword:00000000 (#1493) is not working.
it still includes the native windows path in bash PATH variable.
The text was updated successfully, but these errors were encountered: