question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not open browser in WSL when `server.open: true`

See original GitHub issue

Describe the solution you’d like Open browser in WSL when server.open: true.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jonaskuskecommented, Feb 28, 2021

@theprimone

I don’t understand how it open browser correctly only by name

Yep, strange indeed… Should work fine even if BROWSER is not set at all, as it just calls powershell.exe with Start http://mysite.com in that case 🤔

0reactions
yunsiicommented, Feb 26, 2021

@jonaskuske

It’s empty when I run echo $BROWSER in WSL.

image

And I also try BROWSER=firefox vite, it will open firefox browser, I don’t understand how it open browser correctly only by name like chrome or firefox 😂

Read more comments on GitHub >

github_iconTop Results From Across the Web

bash - Open browser in host system from Windows Subsystem ...
First open your browser and open file://wsl.localhost/ and lets just say you want to open Ubuntu-20.04 then you can change that URL to ......
Read more >
WSL (Ubuntu): how to open localhost in browser from bash ...
You can invoke the Windows command line from Bash and use Windows file association to open URL with the default Windows browser.
Read more >
Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Open Control Panel -> Programs and Features -> Turn Windows Feature on or off -> Check Windows Subsystem for Linux or using the...
Read more >
Systemd support lands in WSL – unleash the full ... - Ubuntu
This method allows us to work on multiple web projects simultaneously and access them all via the browser with no fuss. If you...
Read more >
Using C++ and WSL in VS Code
This tutorial does not teach you about GCC or Linux or the C++ language. ... The code . command opened VS Code in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found