Terminal reports the invalid "icon" message after export and import a WSL distro #23440

Closed
opened 2026-01-31 08:42:14 +00:00 by claunia · 2 comments
Owner

Originally created by @chansey97 on GitHub (Jul 13, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

10.0.26100.4652

Other Software

WSL1
WSL2

Steps to reproduce

I was setting up multiple WSL distribution instances as the following method:

wsl --export Ubuntu ubuntu_base.tar
wsl --import Ubuntu_export1 e:/wsl/Ubuntu_export1 ./ubuntu_base.tar

The process of the export and import is successful and works fine.

Close the terminal and open it again.

The terminal popup a dialogue message:

Found a profile with an invalid "icon". 
Defaulting that profile to have no icon. Make sure that when setting an "icon", the value is a valid file path to an image.

Reason

Open the terminal settings, the Ubuntu_export1 profile (which was generated automatically) shows that:

Icon \\?\E:\wsl\Ubuntu_export1\shortcut.ico

Workaround

Modify

Icon \\?\E:\wsl\Ubuntu_export1\shortcut.ico

to

Icon E:\wsl\Ubuntu_export1\shortcut.ico

Then everything is OK

P.S. Both WSL1 and WSL2 distribution has the same problem.

Expected Behavior

No the dialogue message.

Actual Behavior

The terminal popup a dialogue message:

Found a profile with an invalid "icon". 
Defaulting that profile to have no icon. Make sure that when setting an "icon", the value is a valid file path to an image.
Originally created by @chansey97 on GitHub (Jul 13, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 10.0.26100.4652 ### Other Software WSL1 WSL2 ### Steps to reproduce I was setting up multiple WSL distribution instances as the following method: ``` wsl --export Ubuntu ubuntu_base.tar wsl --import Ubuntu_export1 e:/wsl/Ubuntu_export1 ./ubuntu_base.tar ``` The process of the export and import is successful and works fine. Close the terminal and open it again. The terminal popup a dialogue message: ``` Found a profile with an invalid "icon". Defaulting that profile to have no icon. Make sure that when setting an "icon", the value is a valid file path to an image. ``` #### Reason Open the terminal settings, the Ubuntu_export1 profile (which was generated automatically) shows that: **Icon** `\\?\E:\wsl\Ubuntu_export1\shortcut.ico` #### Workaround Modify **Icon** `\\?\E:\wsl\Ubuntu_export1\shortcut.ico` to **Icon** `E:\wsl\Ubuntu_export1\shortcut.ico` Then everything is OK P.S. Both WSL1 and WSL2 distribution has the same problem. ### Expected Behavior No the dialogue message. ### Actual Behavior The terminal popup a dialogue message: ``` Found a profile with an invalid "icon". Defaulting that profile to have no icon. Make sure that when setting an "icon", the value is a valid file path to an image. ```
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 08:42:14 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 16, 2025):

1.22.11141.0

This was fixed in #19044 and is a /duplicate of #18703

That PR is available in 1.22.11171.0 (on our Releases page)

@DHowett commented on GitHub (Jul 16, 2025): > 1.22.11141.0 This was fixed in #19044 and is a /duplicate of #18703 That PR is available in _1.22.11171.0_ (on our Releases page)
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jul 16, 2025):

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!

@microsoft-github-policy-service[bot] commented on GitHub (Jul 16, 2025): 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! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23440