How does the PowerShell Core function get the path of PowerShell Core? #946

Open
opened 2026-01-30 22:12:09 +00:00 by claunia · 0 comments
Owner

Originally created by @hbjydev on GitHub (May 10, 2019).

The function in question is in Terminal/TerminalApp/CascadiaSettings.cpp (line 328). I wondered... Does it check for an environment variable called PowerShell, or is it looking for that in PATH?
I'm asking because I want to try and detect installed WSL environments to script in an automatic profile creation function for WSL distros.

Originally created by @hbjydev on GitHub (May 10, 2019). The function in question is in Terminal/TerminalApp/CascadiaSettings.cpp (line 328). I wondered... Does it check for an environment variable called `PowerShell`, or is it looking for that in PATH? I'm asking because I want to try and detect installed WSL environments to script in an automatic profile creation function for WSL distros.
claunia added the Issue-Question label 2026-01-30 22:12:09 +00:00
Sign in to join this conversation.
No Label Issue-Question
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#946