updates to windows system and user path not being picked up in terminal windows #7563

Open
opened 2026-01-31 01:07:21 +00:00 by claunia · 0 comments
Owner

Originally created by @myusrn on GitHub (Apr 22, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.207]
Windows Terminal version (if applicable): Version 0.10.781.0

Steps to reproduce

  1. make note of current windows system and user path settings, see win+s | sysdm.cpl | advanced | environment variables | user & system variables | path

  2. install windows terminal | open any terminal type | dump path variable, e.g. cmd = set path | psh = $env.path | wsl2 distro/ubuntu = echo $PATH | note how it contains current windows system and user path settings

  3. make change to windows system and/or user path settings, e.g. add or remove entry(ies)

  4. restart windows terminal | open any terminal type | dump path variable | note how it contains old windows system and user path settings

  5. win+s | apps & features | search list = windows terminal | select windows terminal | advanced options | reset and then repeat step 4 at which point you should see updated windows system and user path settings are in effect but you had to reset windows terminal, and loose any %localappdata%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profile.json customizations in the process. i realize these can be easily restored but having to go through this process every time you update windows system and user path settings is not so optimal.

Expected behavior

expecting new windows terminal tabs or all tabs following a windows terminal app restart should produce terminal sessions containing updated windows system and user path settings

Actual behavior

seeing old windows system and user path settings. it appears windows terminal is reading in these values and locking them in for good versus updating what it uses every time you start a new terminal tab or close and restart entire windows terminal app.

Originally created by @myusrn on GitHub (Apr 22, 2020). # Environment ```none Windows build number: Microsoft Windows [Version 10.0.19041.207] Windows Terminal version (if applicable): Version 0.10.781.0 ``` # Steps to reproduce 1. make note of current windows system and user path settings, see win+s | sysdm.cpl | advanced | environment variables | user & system variables | path 2. install windows terminal | open any terminal type | dump path variable, e.g. cmd = set path | psh = $env.path | wsl2 distro/ubuntu = echo $PATH | note how it contains current windows system and user path settings 3. make change to windows system and/or user path settings, e.g. add or remove entry(ies) 4. restart windows terminal | open any terminal type | dump path variable | note how it contains old windows system and user path settings 5. win+s | apps & features | search list = windows terminal | select windows terminal | advanced options | reset and then repeat step 4 at which point you should see updated windows system and user path settings are in effect but you had to reset windows terminal, and loose any %localappdata%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profile.json customizations in the process. i realize these can be easily restored but having to go through this process every time you update windows system and user path settings is not so optimal. # Expected behavior expecting new windows terminal tabs or all tabs following a windows terminal app restart should produce terminal sessions containing updated windows system and user path settings # Actual behavior seeing old windows system and user path settings. it appears windows terminal is reading in these values and locking them in for good versus updating what it uses every time you start a new terminal tab or close and restart entire windows terminal app.
claunia added the Resolution-Duplicate label 2026-01-31 01:07:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7563