Portable Mode should have a consistent way to refer to the root of the portable install #19899

Closed
opened 2026-01-31 06:56:45 +00:00 by claunia · 2 comments
Owner

Originally created by @carlos-zamora on GitHub (May 18, 2023).

Description of the new feature/enhancement

In order to pass in a portable powershell profile to "commandline", we need a way to refer to the root of the portable install. We got around this issue in "backgroundImage" by using ms-appx:///, however, here, we're just passing the string straight over to PowerShell so it can be resolved there.

Proposed technical implementation details (optional)

It seems like it has to be an environment variable, because that's the only way shells are going to know about it. Perhaps something like %WT_PORTABLE_ROOT%.

Originally created by @carlos-zamora on GitHub (May 18, 2023). # Description of the new feature/enhancement In order to pass in a portable powershell profile to `"commandline"`, we need a way to refer to the root of the portable install. We got around this issue in `"backgroundImage"` by using `ms-appx:///`, however, here, we're just passing the string straight over to PowerShell so it can be resolved there. # Proposed technical implementation details (optional) It seems like it has to be an environment variable, because that's the only way shells are going to know about it. Perhaps something like `%WT_PORTABLE_ROOT%`.
claunia added the Issue-FeatureNeeds-Tag-FixProduct-TerminalArea-Portable labels 2026-01-31 06:56:46 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 13, 2023):

@DHowett, our portable mode czar: Motion to dupe this to #16295?

@zadjii-msft commented on GitHub (Nov 13, 2023): @DHowett, our portable mode czar: Motion to dupe this to #16295?
Author
Owner

@carlos-zamora commented on GitHub (Nov 15, 2023):

@DHowett, our portable mode czar: Motion to dupe this to #16295?

Seconded \dup #16295

@carlos-zamora commented on GitHub (Nov 15, 2023): > @DHowett, our portable mode czar: Motion to dupe this to #16295? Seconded \dup #16295
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19899