Windows Terminal crashes when icon contains %USERPROFILE% #2284

Open
opened 2026-01-30 22:51:30 +00:00 by claunia · 0 comments
Owner

Originally created by @fpintos on GitHub (Jun 26, 2019).

Environment

Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0

Steps to reproduce

Create a profile with an icon property like this, where the icon file exists:

            "icon": "%USERPROFILE%\\AppData\\Local\\IconsForEnlistments\\Substrate.ico",

Expected behavior

For Windows Terminal to show the new profile and its icon.

Actual behavior

Windows Termial crashes on startup.

Workaround

Update the icon property so that it does not use environment variables makes things work.

Originally created by @fpintos on GitHub (Jun 26, 2019). # Environment ```none Windows build number: 10.0.18362.175 Windows Terminal version (if applicable): 0.2.1715.0 ``` # Steps to reproduce Create a profile with an icon property like this, where the icon file exists: ```json "icon": "%USERPROFILE%\\AppData\\Local\\IconsForEnlistments\\Substrate.ico", ``` # Expected behavior For Windows Terminal to show the new profile and its icon. # Actual behavior Windows Termial crashes on startup. # Workaround Update the icon property so that it does not use environment variables makes things work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2284