mirror of
				https://github.com/mintty/wsltty.git
				synced 2025-11-04 09:01:52 +00:00 
			
		
		
		
	allow persistent customization of default icon (#132)
This commit is contained in:
		@@ -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 
 | 
					Explorer context menu, or remove them, run the respective script from the 
 | 
				
			||||||
Start Menu subfolder `WSLtty`.
 | 
					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 settings ####
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Mintty can maintain its configuration file in various locations, 
 | 
					Mintty can maintain its configuration file in various locations, 
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,9 +28,10 @@ copy "remove from context menu.lnk" "%installdir%"
 | 
				
			|||||||
copy "configure WSL shortcuts.lnk" "%installdir%"
 | 
					copy "configure WSL shortcuts.lnk" "%installdir%"
 | 
				
			||||||
copy "WSL Terminal.lnk" "%installdir%"
 | 
					copy "WSL Terminal.lnk" "%installdir%"
 | 
				
			||||||
copy "WSL Terminal %%.lnk" "%installdir%"
 | 
					copy "WSL Terminal %%.lnk" "%installdir%"
 | 
				
			||||||
copy wsl.ico "%installdir%"
 | 
					 | 
				
			||||||
copy config-distros.sh "%installdir%"
 | 
					copy config-distros.sh "%installdir%"
 | 
				
			||||||
copy mkshortcut.vbs "%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
 | 
					if not exist "%installdir%\bin" goto instbin
 | 
				
			||||||
rem move previous programs possibly in use out of the way
 | 
					rem move previous programs possibly in use out of the way
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user