-
Notifications
You must be signed in to change notification settings - Fork 855
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
wsl
does not respect Windows-side symlinks
#5701
Comments
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
@therealkenc, I have seen #5118 before posting this, and I also read through #4868 now -- it looks to me like both of these are about making WSL-side symlinks work on the windows side, but this is not what I'm talking about here. This one is about the Windows-side |
i'm hitting this bug, but at a file level. i currently have my windows terminal settings.json file ( since wsl2 switched to vhd's, if i try to open terminal w/o starting wsl to load the vhd, i get the "Encountered errors while loading user settings" error dialog. i have to remember to always start wsl to allow wt to be able to read from this (and any other) symlink to \wsl$ files. it would be great to automatically load wsl if trying to access any symlink that points to wsl paths. |
@razamatan, this is a separate issue (which I originally mentioned originally as a caveat). BTW, I have a startup script (made in the Task Scheduler) that starts WSL when windows starts -- that would be an easy way to ensure that WSL starts automatically. |
ok.. i'll create a new issue. |
yeah.. but wsl stops if not accessing things regularly.
|
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Environment
Windows build number: 10.0.20180.0
Your Distribution version: Ubuntu 18.04
WSL version: WSL 2
Steps to reproduce
Use CMD to create a synlink to somewhere inside the WSL FS, in my case:
Then cd into it, and use the
wsl
command -- it always starts with the root/
as its working directory. For example:Expected behavior
Expected to resolve the windows-side link before resorting to using
/
.Actual behavior
Uses
/
.Use case
Just to clarify my use case: I use both Linux & Windows heavily, so I want to have an easy short path to my home directory on the WSL side. (In WSL1, my home directory was actually at
c:\eli
, with the WSL1/home/eli
being a symlink to it, and I now decided to try the switch to WSL2.) Usingmklink
as above works nicely (with a minor caveat that it doesn't exist until I start WSL), but usingwsl
itself to start stuff from windows doesn't get the correct directory. For example, I'd expect to just runwsl
and get a linux shell at my directory, but if I'm in the symlink, it starts at/
.The text was updated successfully, but these errors were encountered: