[PR #15444] env: always expand PATH vars #30639

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

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

State: closed
Merged: Yes


Make sure we always expand path env vars, even if they're REG_SZ in the registry.

Detailed Description of the Pull Request / Additional comments

On some systems path vars are REG_SZ instead of REG_EXPAND_SZ. We need to make sure we always expand them. We looked at the system code, and it also makes to sure to always expand them.

Validation Steps Performed

Built locally and made sure the problem went away. Also stepped through in the debugger to make sure things were working correctly.

Closes #15442

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15444 **State:** closed **Merged:** Yes --- Make sure we always expand path env vars, even if they're REG_SZ in the registry. ## Detailed Description of the Pull Request / Additional comments On some systems path vars are REG_SZ instead of REG_EXPAND_SZ. We need to make sure we always expand them. We looked at the system code, and it also makes to sure to always expand them. ## Validation Steps Performed Built locally and made sure the problem went away. Also stepped through in the debugger to make sure things were working correctly. Closes #15442
claunia added the pull-request label 2026-01-31 09:42:01 +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#30639