MicrosoftDocs / terminal

Creative Commons Attribution 4.0 International
468 stars 170 forks source link

multiple profiles seem to exist but are not visible #695

Closed where2go947 closed 10 months ago

where2go947 commented 11 months ago

I use WSL2 in Windows 10 to install Ubuntu-16.04. And due to some issues, I need to reinstall it.

I guess they are just links to real files. How can I edit these profiles and leave only one usable profile? Thanks in advance.

zadjii-msft commented 10 months ago

Can you just share your settings.json file? That might answer questions quicker. Uninstalling a distro can sometimes leave the Terminal in a bit of a confused state. (https://github.com/microsoft/terminal/issues/14061). There's also ongoing confusions (https://github.com/microsoft/terminal/issues/12961) about the fact that Canonical ships a second set of Ubuntu profiles (rather than extending the Terminal's built-in ones).

I'd reckon that the old WSL profile got marked as "deleted" in state.json, because the Terminal noticed that it was uninstalled, but can't effectively determine that an uninstalled distro was re-installed.

zadjii-msft commented 10 months ago

Closing as stale. If you ever want to follow-up, feel free to do so. We can always reopen this or open a new issue over at https://github.com/microsoft/terminal/issues. Thanks!