-
Notifications
You must be signed in to change notification settings - Fork 225
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
Does this support Windows Terminal + WSL2 Ubuntu? #187
Comments
Correct, the script assumes Windows, and I don't think it's worth the effort supporting its use through WSL, so if WSL/Linux is detected this should be excluded from the candidate adapters (it isn't currently) |
@inductor sharing how I made this work in my WSL. I changed a couple of lines directly in my installation. First, I changed this line to:
Then, added this line
I just added another environment variable: WSLPATH.
|
I had to change my |
Hi, I know this issue was posted a long time ago, but I had exactly the same issue and was able to fix it in a very similar way with the reply given above, but slightly different. Here I will try to explain it in a detailed way if someone has the same problem as I just did. Instead of working with enviroment variables you can change the following in windowsterminal.py (path to this file is given explicitly by the error printed in console): Change line number #10, which was: in this case, "Panchito" is my Windows (not WSL) username in my configuration. You have to change that for your Windows username. Next, in line #29 you will find the following original line: Change "20.04" for your current WSL2 system version; in my case is Ubuntu 20.04. If you do not know how to see you Root directory in WSL just go to root directory in WSL (type In other words, reply given by @chardskarth was really good! However, for WSL you must specify explicitly where Windows AppData (Windows Terminal json setting file) is in a way that WSL can easily understand it (which is /mnt/c/Users/...) Cheers! |
It seems like it tried to read the Windows env variable. So I tried adding it as a variable on Linux
So it assumes you are using Windows when you're on Windows Terminal. I guess you need to read the OS type?
The text was updated successfully, but these errors were encountered: