[Bug Report] profiles.json hardcodes WSL Legacy #2225
Labels
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Environment
Steps to reproduce
Have WSL setup already
Install Ubuntu 18.04 from windows store
Have the following two profiles from sample json into
profiles.json
In
cmd
runwsl -s Ubuntu-18.04
to set it as default.In cmd, run
wsl
and observe that you are in Ubuntu 18.04Open Terminal Preview, open a tab representing the Ubuntu 18.04 profile
Observe you are in Legacy WSL
In Legacy WSL, run
bash.exe
orwsl.exe
Observe you are now in Ubuntu 18.04
Sample json
Expected behavior
If you launch
wsl
fromcmd
,powershell
or awsl
instance you have certain controls. You can use the-l
flag to list your wsl instances,-d
to launch one by name and-s
to set a specific instance as the default.If you launch this command from any commandline instance you have available, Linux or NT, it behaves as you expect.
I expect Terminal's
profiles.json
to respect these commandline flags and behave as if it is actually launching a subshell of the instance I choose to launch.Hypothetically able to launch certain terminal applications directly from the
commandline
key.Actual behavior
If you launch this command from the "commandline" key in the
profiles.json
wsl will always run legacy, regardless as to whether you-s
set the default and launchbash.exe
orwsl.exe
or if you include-d
in the commandline key and manually select your desired distribution.Note
I did search and see #1674 read through it and determine that this bug is of a more specific nature as to the behavior of the Windows terminal than that issue and I believe it is of a different scope.
The text was updated successfully, but these errors were encountered: