I was using WSL (WIndows Subsystem for Linux) and today upgraded to the "Windows Store" release of Ubuntu. Doing so adds a new .exe to your system, ubuntu.exe. I have confirmed that Visual Studio Code can correctly use this as the integrated shell. When used in Hyper, it loads and then immediately crashes.
Ok, thanks to Scott Hanselman of Microsoft, here is the fix.
For shell, use cmd.exe
For args, use: /c ubuntu
And then it works.
This used to work - it's now broken with W10 build 16281.rs3. I'm using Hyper.js 1.4.3 and those shell and args strings. Hyper.js quits immediately on launch with no error popup when I use those settings.
_Workaround:_ I'm having to use shell: 'cmd.exe', and shellArgs: '/c bash'. which will give me a bash terminal, a bit of a pain since I'm using zsh.
@hikurangi can't you just type "zsh" to get to zsh when you're in bash? 馃 and then if that works just add it to the args like shellArgs: '/c bash -c "zsh"'?
@albinekb thanks for the workaround.
1) Typing "zsh" does launch zsh successfully when I'm in bash.
However...
2) following that, I've tried using the shellArgs you mentioned, and Hyper quits immediately on launch as it did in my original reply.
So I can get it to work in a somewhat painful way 1), but I think the important takeaway here is that (for me) Hyper 1.4.3 doesn't want to open the Windows Store Ubuntu using the shellArgs supplied by @cfjedimaster on 16281.rs3.
fwiw cmd.exe and /c ubuntu work on 16288.1
I'm on the Fall Creator's Update and was able to get it working. I have it working using either 'bash.exe' (which works by making sure you have a default "linux" set with wslconfig) or 'ubuntu.exe'. The trick was setting the shell args to [], not [''].
Most helpful comment
Ok, thanks to Scott Hanselman of Microsoft, here is the fix.
For shell, use cmd.exe
For args, use: /c ubuntu
And then it works.