diff --git a/README.md b/README.md index 72aba3d..6e4d78f 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,13 @@ To add launch entries for the default or all WSL distributions to the Explorer context menu, or remove them, run the respective script from the Start Menu subfolder `WSLtty`. +#### Icon #### + +Wsltty installation and the mintty terminal try to use the icon of the +respective WSL distribution. If it cannot be determined, a penguin icon +is used as a default. You can replace it with your preferred fallback icon +by replacing the icon file `%LOCALAPPDATA%\wsltty\wsl.ico`. + #### Mintty settings #### Mintty can maintain its configuration file in various locations, diff --git a/install.bat b/install.bat index 0cf8a57..0838842 100755 --- a/install.bat +++ b/install.bat @@ -28,9 +28,10 @@ copy "remove from context menu.lnk" "%installdir%" copy "configure WSL shortcuts.lnk" "%installdir%" copy "WSL Terminal.lnk" "%installdir%" copy "WSL Terminal %%.lnk" "%installdir%" -copy wsl.ico "%installdir%" copy config-distros.sh "%installdir%" copy mkshortcut.vbs "%installdir%" +rem allow persistent customization of default icon: +if not exist "%installdir%"\wsl.ico copy wsl.ico "%installdir%" if not exist "%installdir%\bin" goto instbin rem move previous programs possibly in use out of the way