Windows Version
Microsoft Windows [Version 10.0.26100.4061]
WSL Version
2.5.7.0
Are you using WSL 1 or WSL 2?
Kernel Version
6.6.87.1-1
Distro Version
Ubuntu 24.04.2 LTS
Other Software
No response
Repro Steps
- Install a new architecture enabled distro:
wsl --install -d Ubuntu
- Export it:
wsl --export Ubuntu ubuntu.wsl
- Import it as another one:
wsl --import Ubuntu2 C:\Users\hcram\WSLDistros\Ubuntu2 .\ubuntu.wsl
- Open Windows Terminal and Open the menu
Expected Behavior
The icon is shown in the menu for the new distro and no error is displayed
Actual Behavior
- Windows Terminal shows an error: 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.
- The icon is not shown in the menu.
But if you do the same with --install it works perfectly fine: wsl --install --name Ubuntu2 --location C:\Users\hcram\WSLDistros\Ubuntu2 --from-file .\ubuntu.wsl
Screenshots:



Diagnostic Logs
No response
Windows Version
Microsoft Windows [Version 10.0.26100.4061]
WSL Version
2.5.7.0
Are you using WSL 1 or WSL 2?
Kernel Version
6.6.87.1-1
Distro Version
Ubuntu 24.04.2 LTS
Other Software
No response
Repro Steps
wsl --install -d Ubuntuwsl --export Ubuntu ubuntu.wslwsl --import Ubuntu2 C:\Users\hcram\WSLDistros\Ubuntu2 .\ubuntu.wslExpected Behavior
The icon is shown in the menu for the new distro and no error is displayed
Actual Behavior
Make sure that when setting an "icon", the value is a valid file path to an image.
But if you do the same with --install it works perfectly fine:
wsl --install --name Ubuntu2 --location C:\Users\hcram\WSLDistros\Ubuntu2 --from-file .\ubuntu.wslScreenshots:
Diagnostic Logs
No response