[Bug 1156950] New: WSL OpenSUSE 15.1: converted %PATH% not appended to $PATH
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1156950 Bug ID: 1156950 Summary: WSL OpenSUSE 15.1: converted %PATH% not appended to $PATH Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: WSL Assignee: riwilliams@suse.com Reporter: spam.catcher@t-online.de QA Contact: sreeves@suse.com Found By: --- Blocker: --- By default, the paths in %PATH% in Windows 10 are converted to the corresponding path under WSL and appended to $PATH. (Convenient, for example, to start the Windows Explorer by explorer.exe in WSL.) However, /etc/profile removes these converted path by setting PATH=/usr/local/bin:/usr/bin:/bin There is a comment that the original value might be restored, but in fact the variable to save $PATH is only unset later. But Microsoft documents at https://docs.microsoft.com/en-us/windows/wsl/interop#run-windows-tools-from-... on WSL all executables in %PATH% can be run by their full file name (that is, including the exe extension). Thus openSUSE 15.1 behaves unexpectedly. (This question was already posted in the openSUSE forum (https://forums.opensuse.org/showthread.php/538192-WSL-OpenSUSE-15-1-converte...) and on the reddit forum (https://www.reddit.com/r/openSUSE/comments/dxos80/path_under_opensuse_151_ws...).) Instead of always disabling the appending of the converted %PATH% to $PATH, one can opt to do so by adding [interop] appendWindowsPath = false to /etc/wsl.conf. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1156950
http://bugzilla.opensuse.org/show_bug.cgi?id=1156950#c1
Ludwig Nussel
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1156950
http://bugzilla.opensuse.org/show_bug.cgi?id=1156950#c5
Dwayne Bradley
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com