-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use powershell instead of cmd to launch browser on Windows/WSL #520
Conversation
Nice! |
So on WSL2 it shows an error, but it works anyway? |
It'll work but it will give this warning and execute cmd on the windows path, which will incur a slight delay (probably not relevant on a single |
Maybe it's a good idea to use a Could you experiment? Your computer with |
I'd be happy to look at those cases but that's kind of a different issue, right? This PR at least fixes this particular warning for UNC, paths instead of suppressing it (which is better, no?). You can redirect |
Suppressing |
I'd agree with you in general, were it not that we already have a thing "breaking" with
And that we should "suppress |
Yes, let's do both! About my comment that switching to The original code was based on a nodejs package, which I assume is well tested. And they also switched to powershell! As for ignoring |
cmd
cannot deal with UNC paths when executed from WSL:But
powershell
can! Since it ships with every Windows version >= Windows 7 SP1 || Windows server 2008, I'd say it's a safe replacement.