Skip to content

Instantly share code, notes, and snippets.

@jon4syth
Created February 19, 2021 20:15
Show Gist options
  • Save jon4syth/3779f950b62040a6537df3b429b11343 to your computer and use it in GitHub Desktop.
Save jon4syth/3779f950b62040a6537df3b429b11343 to your computer and use it in GitHub Desktop.
Following guide at: https://www.gregbrisebois.com/posts/chromedriver-in-wsl2/
Issue:
I get to the last step of running google-chrome with this output as a non-admin:
```
> google-chrome
[9896:9896:0219/105457.079353:ERROR:browser_main_loop.cc(1438)] Unable to open X display.
```
and as root using the required --no-sandbox
```
> sudo google-chrome --no-sandbox
[9945:9945:0219/111348.599352:ERROR:browser_main_loop.cc(1438)] Unable to open X display.
[0219/111348.612093:ERROR:nacl_helper_linux.cc(307)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
```
I have the following Software versions:
- Ubuntu 20.04 running on WSL 2
- Google Chrome 88.0.4324.150 (slightly different "micro" version from Chrome Driver)
- ChromeDriver 88.0.4324.96
- VcXsrv 1.20.9.0
- Windows 10.0.19042
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment