-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Set default WSL path to distro $HOME #3286
Comments
Two ways:
|
I already set |
As said in this issue, you can set the |
Ok it's another good workaround |
Anyway I agree with you that the default |
Agreed, at least going by the principle of DWIM. if we're launching WSL, it should default to normal *nices behaviour of logging into users home directory within wsl, not some other directory |
Is this the default directory for WSL distros when opening with ConHost? |
Don't understand. If I login into wsl using putty, mintty or any other terminal software, the shell prompt comes at In MS terminal, the default seems to be |
When we launch |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Well, I am facing the same issue, and I launch my VM directly via the |
In my case for Tabby Terminal I had to set it to: |
Set default WSL path to distro $HOME
The default path for WSL distros is currently the Windows user path (
%USERPROFILE%
) but it's may be better to set it to the distro$HOME
.Proposed technical implementation details (optional)
I don't know if it's possible, but ideally in the
WslDistroGenerator.cpp
the command line should be conditionally set to"wsl.exe -d " + distName
ifstartingDirectory
is set inprofile.json
,"wsl.exe ~ -d " + distName
otherwise.Another possibility is to add a boolean setting
UseWSLHome
on the wslprofile.json
Thank you.
The text was updated successfully, but these errors were encountered: