Auto-add a 'WSL' profile, linking to System32\wsl.exe #959

Closed
opened 2026-01-30 22:12:29 +00:00 by claunia · 3 comments
Owner

Originally created by @hbjydev on GitHub (May 10, 2019).

One of the features demo'd on the 'Introducing Windows Terminal' video was an automatic detection for WSL distributions. However, it's not yet been implemented.

I'm putting together a PR to fix this, but thus far, only for the default WSL distro (located by execution alias at %WINDIR%\System32\wsl.exe).

If anyone has a way to get a list of all possible linux distros installed locally, could they let me know so that I can add that as a feature too?

Originally created by @hbjydev on GitHub (May 10, 2019). One of the features demo'd on the 'Introducing Windows Terminal' video was an automatic detection for WSL distributions. However, it's not yet been implemented. I'm putting together a PR to fix this, but thus far, only for the default WSL distro (located by execution alias at `%WINDIR%\System32\wsl.exe`). If anyone has a way to get a list of all possible linux distros installed locally, could they let me know so that I can add that as a feature too?
claunia added the Resolution-Duplicate label 2026-01-30 22:12:29 +00:00
Author
Owner

@ghvanderweg commented on GitHub (May 10, 2019):

From a prompt you can list them pretty easily (https://docs.microsoft.com/en-us/windows/wsl/wsl-config#managing-multiple-linux-distributions), but I'm not sure how you can get this list programmatically

@ghvanderweg commented on GitHub (May 10, 2019): From a prompt you can list them pretty easily (https://docs.microsoft.com/en-us/windows/wsl/wsl-config#managing-multiple-linux-distributions), but I'm not sure how you can get this list programmatically
Author
Owner

@JBanks commented on GitHub (May 10, 2019):

but I'm not sure how you can get this list programmatically

I just put some code in #441 that takes care of this. I'm sure there's a more pleasant way to write it, but it works for a temporary solution.

@JBanks commented on GitHub (May 10, 2019): >but I'm not sure how you can get this list programmatically I just put some code in #441 that takes care of this. I'm sure there's a more pleasant way to write it, but it works for a temporary solution.
Author
Owner

@DHowett-MSFT commented on GitHub (May 10, 2019):

I’m gonna close this as a dupe of #441. Thanks for reporting!

@DHowett-MSFT commented on GitHub (May 10, 2019): I’m gonna close this as a dupe of #441. Thanks for reporting!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#959