Opening from File Explorer Ignores User Path Environment Variable #17133

Open
opened 2026-01-31 05:33:04 +00:00 by claunia · 0 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:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17133