Different starting directory if launched via taskbar/start menu #8449

Open
opened 2026-01-31 01:29:45 +00:00 by claunia · 0 comments
Owner

Originally created by @warrenbuckley on GitHub (May 21, 2020).

Description of the new feature/enhancement

I currently added %USERPROFILE%\AppData\Local\Microsoft\WindowsApps to my PATH so from the explorer address bar I can type wt and that it will launch that folder directly in Windows Terminal, in conjunction with the JSON setting set to the current folder.

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "profiles":
    {
        "defaults":
        {
            // Put settings here that you want to apply to all profiles

            // Use this starting directory when launching from start menu/taskbar
            //"startingDirectory": "c:/code",

            // Allows wt in explorer address bar to launch that folder
            "startingDirectory": ".",
        }
        ....
    }
}

However if you open it from the taskbar/start menu then it will open at the folder C:\Windows\System32 which is perhaps not the most useful.

Proposed technical implementation details (optional)

Can I suggest a new JSON setting where it would be possible to set the starting directory if its invoked from the explorer address bar

Originally created by @warrenbuckley on GitHub (May 21, 2020). # Description of the new feature/enhancement I currently added `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps` to my **PATH** so from the explorer address bar I can type `wt` and that it will launch that folder directly in Windows Terminal, in conjunction with the JSON setting set to the current folder. ``` { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "profiles": { "defaults": { // Put settings here that you want to apply to all profiles // Use this starting directory when launching from start menu/taskbar //"startingDirectory": "c:/code", // Allows wt in explorer address bar to launch that folder "startingDirectory": ".", } .... } } ``` However if you open it from the taskbar/start menu then it will open at the folder `C:\Windows\System32` which is perhaps not the most useful. # Proposed technical implementation details (optional) Can I suggest a new JSON setting where it would be possible to set the starting directory if its invoked from the explorer address bar
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:29:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8449