How to know the value of Dynamic profiles path? #15057

Closed
opened 2026-01-31 04:27:12 +00:00 by claunia · 4 comments
Owner

Originally created by @stephane-archer on GitHub (Sep 1, 2021).

I would like to know the path in my current config for Windows.Terminal.Wsl
Where is it pointing to?

Originally created by @stephane-archer on GitHub (Sep 1, 2021). I would like to know the path in my current config for Windows.Terminal.Wsl Where is it pointing to?
Author
Owner

@zadjii-msft commented on GitHub (Sep 1, 2021):

It's pointing at a profile that's created at runtime for your WSL distros. It doesn't really exist anywhere. There are more docs on dynamic profiles here. Could you maybe share more details on what you're trying to do? I'm not really sure how best to answer your question.

@zadjii-msft commented on GitHub (Sep 1, 2021): It's pointing at a profile that's created at runtime for your WSL distros. It doesn't really exist _anywhere_. There are more docs on dynamic profiles [here](https://docs.microsoft.com/en-us/windows/terminal/dynamic-profiles). Could you maybe share more details on what you're trying to do? I'm not really sure how best to answer your question.
Author
Owner

@stephane-archer commented on GitHub (Sep 1, 2021):

All the other profiles have a path to the shell they run or the name of the exe they run, for example: "commandline": "powershell.exe",
I would like to know basically what is run by the profile Windows.Terminal.Wsl on my particular laptop.
From my understanding, because it's using WSL, it's not calling bash.exe somewhere in my system

@stephane-archer commented on GitHub (Sep 1, 2021): All the other profiles have a path to the shell they run or the name of the exe they run, for example: `"commandline": "powershell.exe",` I would like to know basically what is run by the profile `Windows.Terminal.Wsl` on my particular laptop. From my understanding, because it's using WSL, it's not calling `bash.exe` somewhere in my system
Author
Owner

@zadjii-msft commented on GitHub (Sep 1, 2021):

Ah okay. They're basically all just doing wsl -d {the name of the distro}. They're generated here:

c089ae0c57/src/cascadia/TerminalSettingsModel/WslDistroGenerator.cpp (L168)

@zadjii-msft commented on GitHub (Sep 1, 2021): Ah okay. They're basically all just doing `wsl -d {the name of the distro}`. They're generated here: https://github.com/microsoft/terminal/blob/c089ae0c57d9ecc6d6e0f99eeb6cbcb655bd720e/src/cascadia/TerminalSettingsModel/WslDistroGenerator.cpp#L168
Author
Owner

@DHowett commented on GitHub (Sep 1, 2021):

You can also learn this by looking into the profile in the Settings UI! 😄

image

@DHowett commented on GitHub (Sep 1, 2021): You can also learn this by looking into the profile in the Settings UI! :smile: ![image](https://user-images.githubusercontent.com/189190/131736193-1d92153a-37f1-4466-88c6-e8c7ecd573ea.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15057