Opening from File Explorer Ignores User Path Environment Variable #17136

Closed
opened 2026-01-31 05:33:11 +00:00 by claunia · 2 comments
Owner

Originally created by @markolbert on GitHub (Apr 1, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.22000.0

Other Software

No response

Steps to reproduce

  • Add a directory to the current user's path using the OS tools
  • Reboot the machine (not sure if this is necessary but I did it because I'm unclear on when Terminal picks up things like environment variables)
  • Right click on a folder in File Explorer and select Open in Windows Terminal
  • Check the path variable (e.g., $env:path under PowerShell)

The path you entered for the current user won't be there.

Repeat the steps but add the new folder to the global/system path variable and it will appear

Expected Behavior

The user path variable should be part of Terminal's path "environment" when the user opens a Terminal window from a File Explorer instance "owned" by that same user

Actual Behavior

Paths defined in the user environment do not show up. Paths defined in the system/global environment do, as expected

Originally created by @markolbert on GitHub (Apr 1, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.22000.0 ### Other Software _No response_ ### Steps to reproduce - Add a directory to the current user's path using the OS tools - Reboot the machine (not sure if this is necessary but I did it because I'm unclear on when Terminal picks up things like environment variables) - Right click on a folder in File Explorer and select Open in Windows Terminal - Check the path variable (e.g., $env:path under PowerShell) The path you entered for the current user won't be there. Repeat the steps but add the new folder to the global/system path variable and it will appear ### Expected Behavior The user path variable should be part of Terminal's path "environment" when the user opens a Terminal window from a File Explorer instance "owned" by that same user ### Actual Behavior Paths defined in the user environment do not show up. Paths defined in the system/global environment do, as expected
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 05:33:11 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 8, 2022):

/dup #12602

@zadjii-msft commented on GitHub (Nov 8, 2022): /dup #12602
Author
Owner

@ghost commented on GitHub (Nov 8, 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 (Nov 8, 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#17136