[PR #13436] [MERGED] Remove the fallback to wsl.exe when HKCU\...\Lxss doesn't exist #29546

Open
opened 2026-01-31 09:35:33 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13436
Author: @DHowett
Created: 7/5/2022
Status: Merged
Merged: 7/5/2022
Merged by: @undefined

Base: mainHead: dev/duhowett/nowslex


📝 Commits (1)

  • 871b285 Remove the fallback to wsl.exe when HKCU...\Lxss doesn't exist

📊 Changes

1 file changed (+3 additions, -106 deletions)

View changed files

📝 src/cascadia/TerminalSettingsModel/WslDistroGenerator.cpp (+3 -106)

📄 Description

The main result of this fallback is that we attempt to launch wsl.exe
when the user hasn't installed or interacted with WSL. On our test
machines, that results in the creation of a wsl.exe process that tells
us precisely nothing; on WDAC managed machines it results in an Event
Log entry about spawning another (possibly blocked) process.

The registry is more reliable, and if the "API" it provides changes we
can just rev terminal.

Closes #11716


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13436 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 7/5/2022 **Status:** ✅ Merged **Merged:** 7/5/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/nowslex` --- ### 📝 Commits (1) - [`871b285`](https://github.com/microsoft/terminal/commit/871b285f65a8dc27d8742e4fb4910dda818941a4) Remove the fallback to wsl.exe when HKCU\...\Lxss doesn't exist ### 📊 Changes **1 file changed** (+3 additions, -106 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsModel/WslDistroGenerator.cpp` (+3 -106) </details> ### 📄 Description The main result of this fallback is that we attempt to launch wsl.exe when the user hasn't installed or interacted with WSL. On our test machines, that results in the creation of a wsl.exe process that tells us precisely nothing; on WDAC managed machines it results in an Event Log entry about spawning another (possibly blocked) process. The registry is more reliable, and if the "API" it provides changes we can just rev terminal. Closes #11716 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:35:33 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29546