Allow aliasing parent process directories #16444

Closed
opened 2026-01-31 05:12:21 +00:00 by claunia · 3 comments
Owner

Originally created by @UmbralReaper on GitHub (Jan 19, 2022).

Description of the new feature/enhancement

I like to start windows terminal through the search function in the taskbar, or through PowerToys Run. However, both of these end up in undesirable starting locations when windows terminal inherits the parent process (C:\Windows\System32 and ~\AppData\Local\Microsoft\WindowsApps, respectively). However, setting a more desirable default start location (such as %USERPROFILE) prevents inheriting the location when it is useful.

I propose that you allow setting aliases for start locations in settings.

{
    "start_aliases": {
        "C:\\Windows\\System32": "%USERPROFILE%",
        "%USERPROFILE%\\AppData\\Local\\Microsoft\\WindowsApps": "%USERPROFILE%"
    }
}
Originally created by @UmbralReaper on GitHub (Jan 19, 2022). # Description of the new feature/enhancement I like to start windows terminal through the search function in the taskbar, or through PowerToys Run. However, both of these end up in undesirable starting locations when windows terminal inherits the parent process (`C:\Windows\System32` and `~\AppData\Local\Microsoft\WindowsApps`, respectively). However, setting a more desirable default start location (such as `%USERPROFILE`) prevents inheriting the location when it is useful. I propose that you allow setting aliases for start locations in settings. ```json { "start_aliases": { "C:\\Windows\\System32": "%USERPROFILE%", "%USERPROFILE%\\AppData\\Local\\Microsoft\\WindowsApps": "%USERPROFILE%" } } ```
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 05:12:21 +00:00
Author
Owner

@237dmitry commented on GitHub (Jan 19, 2022):

You can add startupActions. For example:

"startupActions" : "--startingDirectory D:\\",
@237dmitry commented on GitHub (Jan 19, 2022): You can add `startupActions`. For example: ``` "startupActions" : "--startingDirectory D:\\", ```
Author
Owner

@zadjii-msft commented on GitHub (Jan 19, 2022):

You can add startupActions. For example:

I don't think that'll work at all for what this user's asking for...


In general, we're tracking improvements to startingDirectory in #4637. That thread has a couple ideas in it already, I'm gonna move yours in there too, because it's a good idea. Thanks!

/dup #4637

@zadjii-msft commented on GitHub (Jan 19, 2022): > You can add `startupActions`. For example: > I don't think that'll work at all for what this user's asking for... <hr> In general, we're tracking improvements to `startingDirectory` in #4637. That thread has a couple ideas in it already, I'm gonna move yours in there too, because it's a good idea. Thanks! /dup #4637
Author
Owner

@ghost commented on GitHub (Jan 19, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jan 19, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16444