-
Notifications
You must be signed in to change notification settings - Fork 848
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
Linux home folder to be the same as windows home folder. #5090
Comments
You can set |
The solution indicated by @ad-on-is (clever name!) is what I have done:
At this point, your WSL window should come up exactly as before, but with the new directory as the home directory. NOTES:
|
One more remark: if you want to KEEP your home in Come to think of it, if this feature does get approved and implemented, that's probably how it should be done:
|
Since there are still I/O performance issues with /mnt, I personally wouldn't want this to be the default setup when installing a distro. @beltaurus Thx, I carry that nickname since the early 2000s, being that nerdy friend who's always ON-line. |
Currently im not using WSL 1 or 2, im waiting for the new stable windows update with WSL 2 to be released and then i will play with that. In the past i used my windows home folder with the /etc/passwd path change method, there where some permissions issues that i solved by modifying the wsl conf. |
As I mentioned, performance issues are due to I/O speeds on /mnt, which are not better in WSL2, some say it's even worse compared to WSL1. But when working with WSL2, it's recommended to store your work-files inside /home/user, where performance is nearly bare-metal. |
I would like it to be configurable to make it the default to save the hassle of modifying the /etc/passwd file. It would also make it a more seamless experience for most people who are dabbling on it. |
So, not complaining because I knew I'd screw something up here. I did the above mentioned solution and broke docker desktop. I think it was because I copied all (I mean ALL) files and folders over blindly. When I installed docker, it created a .docker folder in my windows home dir and in the wsl home dir. Apparently they have different contents or the permissions to the directory might be a problem. But when I copied, it overwrote the existing one. To fix it I did a full purge and reset on docker, renamed the .docker folder, restarted windows and then all was good. Docker re-created the .docker folder and I opened a terminal (wsl working on new home directory) and recreated all my images and deployments. All this just so I could have
instead of
It helps keep the long path from wrapping in terminal inside vscode I should probably move work like this into /home/user anyway and then use \wsl$ if I need to access the files in explorer |
Is your feature request related to a problem? Please describe.
I need to manage .ssh keys both on windows and linux, this will help that, and other stuff.
Describe the solution you'd like
Allow using windows home folder as linux home folder.
The text was updated successfully, but these errors were encountered: