[PR #4852] Add WT_PROFILE_ID to the environment of the spawned process #25991

Closed
opened 2026-01-31 09:13:09 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/4852

State: closed
Merged: Yes


This commit adds a WT_PROFILE_ID environment variable, which contains
the guid of the active profile.

It also teaches ConptyConnection to take an environment map on creation.

We had to do a little manual jiggery with the WSLENV environment
variable as passed by the creator.

  • CLA signed
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already.

Ran terminal, validated vars and translated paths under windows and WSL.

References #4566 (this PR originally introduced WT_SETTINGS/DEFAULTS)
Closes #3589

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4852 **State:** closed **Merged:** Yes --- This commit adds a `WT_PROFILE_ID` environment variable, which contains the guid of the active profile. It also teaches ConptyConnection to take an environment map on creation. We had to do a little manual jiggery with the WSLENV environment variable as passed by the creator. * [x] CLA signed * [ ] Tests added/passed * [ ] Requires documentation to be updated * [x] I've discussed this with core contributors already. Ran terminal, validated vars and translated paths under windows and WSL. References #4566 (this PR originally introduced WT_SETTINGS/DEFAULTS) Closes #3589
claunia added the pull-request label 2026-01-31 09:13:09 +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#25991