mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 159 forks source link

‘1-add-open-wsl-terminal-here-menu’ not usable on Win10 #99

Closed ybj14 closed 6 years ago

ybj14 commented 6 years ago

Thank you for this neat terminal! However, after executing 1-add-open-wsl-terminal-here-menu.js , I have got Open wsl-terminal Here in the menu, but after clicking that option Explorer.EXE tells me Application not found. I have tried to add path of open-wsl.exe to PATH environment variable, but it's of no help.

goreliu commented 6 years ago

What's the path of open-wsl.exe?

ybj14 commented 6 years ago

For me it's D:\Download\wsl-terminal-0.8.11\wsl-terminal\open-wsl.exe

ipcjs commented 6 years ago

Microsoft (R) Windows Based Script Host设为js文件的默认打开方式,再双击运行,就可以了

ybj14 commented 6 years ago

I did open js with Microsoft (R) Windows Based Script Host but it did not help. I guess maybe it's because I'm using the English version of Windows.

ybj14 commented 6 years ago

I checked the registry and found 1-add-open-wsl-terminal-here-menu add C:\Windows\open-wsl.exe to the registry instead of D:\Download\wsl-terminal-0.8.11\wsl-terminal\open-wsl.exe. The problem was solved after I manually changed it.

ionling commented 6 years ago

@ybj14 You must set Microsoft (R) Windows Based Script Host as default open program, rather than just open it with Microsoft (R) Windows Based Script Host.