Feature Request - commandline in json should support paths #2232

Closed
opened 2026-01-30 22:50:09 +00:00 by claunia · 2 comments
Owner

Originally created by @Karl-WE on GitHub (Jun 25, 2019).

Summary of the new feature/enhancement

currently profiles.json does not support paths for commandline

supported:
"commandline" : "pwsh.exe",
"commandline" : "cmd.exe",

not supported:
"commandline" : "C:\Program Files\PowerShell\6-preview\pwsh.exe",

This scenario expects the following:
the *.exe is available through system env path $env:path
the *.exe name is unique

Proposed technical implementation details (optional)

please support absolute or relative paths / paths with environment variables like %appdata% or $env:appdata (don't know if this PoSh variable can be used outside PoSh) so better rely on legacy OS variables.

Originally created by @Karl-WE on GitHub (Jun 25, 2019). # Summary of the new feature/enhancement currently profiles.json does not support paths for commandline supported: "commandline" : "pwsh.exe", "commandline" : "cmd.exe", not supported: "commandline" : "C:\Program Files\PowerShell\6-preview\pwsh.exe", This scenario expects the following: the *.exe is available through system env path $env:path the *.exe name is unique # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> please support absolute or relative paths / paths with environment variables like %appdata% or $env:appdata (don't know if this PoSh variable can be used outside PoSh) so better rely on legacy OS variables.
claunia added the Issue-QuestionArea-SettingsResolution-AnsweredProduct-Terminal labels 2026-01-30 22:50:10 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 25, 2019):

"does not support"

did you try it?

@DHowett-MSFT commented on GitHub (Jun 25, 2019): "does not support" did you try it?
Author
Owner

@Shorotshishir commented on GitHub (Jun 25, 2019):

Probably Escaping Character Escaped your mind for a bit.
"C:\\Program Files\\PowerShell\\6-preview\\pwsh.exe"

@Shorotshishir commented on GitHub (Jun 25, 2019): Probably Escaping Character Escaped your mind for a bit. `"C:\\Program Files\\PowerShell\\6-preview\\pwsh.exe"`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2232