mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

System32 must be on PATH #172

Closed jonatasmedeiros closed 5 years ago

jonatasmedeiros commented 5 years ago

I don't know if this is default on Windows 10 (1903), but on my machine 'C:\Windows\System32' was not on PATH.

It turns out that config-distros.sh assumes that system32 is on PATH (for calling cmd).

If system32 is not on PATH, the installation of wsltty will not create the shortcuts to wsl. (It will also not give any error messages, so it took me a while to figure out what was wrong)

After adding system32 to PATH and running the installation again, it worked.

mintty commented 5 years ago

'C:\Windows\System32' was not on PATH

Quite unusual. Did you remove it? Is any of SYSTEMROOT, COMSPEC, WINDIR set?

jonatasmedeiros commented 5 years ago

No, I did not remove it (maybe some program did, without my knowledge). Is it supposed to be there by default?

SystemRoot and windir are both set to 'C:\WINDOWS'. ComSpec is set to 'C:\WINDOWS\system32\cmd.exe'.

The only folders that were in the PATH related to system32 were: '%SystemRoot%' '%SystemRoot%\System32\Wbem' '%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\' '%SYSTEMROOT%\System32\OpenSSH\'

but not system32 itself. I had to add '%SystemRoot%\System32' to the PATH to make the installation work.

I am really enjoying wsltty, by the way.

mintty commented 5 years ago

Does the installer initially start install.bat or does it need to be specified in makewinx.cfg as AppLaunched=%COMSPEC% /c install.bat

jonatasmedeiros commented 5 years ago

Well, the only file I have for installation is wsltty-3.0.1.2-install.exe, so I did not make any changes to makewinx.cfg (as I am not compiling from source).

mintty commented 5 years ago

Released 3.0.2.