From 6fe569cdb6c21be8598ab57f777155cf10a0af7c Mon Sep 17 00:00:00 2001 From: Dustin Howett Date: Fri, 15 Nov 2024 17:58:58 -0600 Subject: [PATCH] [<= 1.22] Do path translation for multiple types of WSL In #18195, we introduced a real `pathTranslationStyle` setting. I'm not backporting that whole thing. --- src/cascadia/TerminalControl/ControlInteractivity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cascadia/TerminalControl/ControlInteractivity.cpp b/src/cascadia/TerminalControl/ControlInteractivity.cpp index f18851c2fbb..64ddfdc3f36 100644 --- a/src/cascadia/TerminalControl/ControlInteractivity.cpp +++ b/src/cascadia/TerminalControl/ControlInteractivity.cpp @@ -735,6 +735,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation // - true if the connection we were created with was a WSL profile. bool ControlInteractivity::ManglePathsForWsl() { - return _core->Settings().ProfileSource() == L"Windows.Terminal.Wsl"; + const auto source{ _core->Settings().ProfileSource() }; + return til::equals_insensitive_ascii(source, L"Windows.Terminal.Wsl") || til::equals_insensitive_ascii(source, L"Microsoft.WSL"); } }