1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-01-31 02:01:01 +00:00

fix imported distros fix (#226)

This commit is contained in:
mintty 2020-04-01 20:27:19 +02:00
parent 223671ce0d
commit 70b6f4cc45

View File

@ -224,9 +224,15 @@ config () {
then then
icon="$basepath/$distro.exe" icon="$basepath/$distro.exe"
root="$basepath/rootfs" root="$basepath/rootfs"
else elif [ -d "$LOCALAPPDATA/lxss" ]
icon="$installdir"'\wsl.ico' then
# legacy "Bash on Windows"
icon="%LOCALAPPDATA%/lxss/bash.ico"
root="$basepath" root="$basepath"
else
# imported distro? (#226, #236)
icon="$installdir"'\wsl.ico'
root="$basepath/rootfs"
fi fi
# invocation parameters for mintty # invocation parameters for mintty