79124241

Date: 2024-10-25 04:14:32
Score: 4.5
Natty:
Report link

Im using Arch in Wsl2 and I'm getting the same error (installing with yay -S chromium):

❯ chromium [3335:3335:1025/005623.218894:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY [3335:3335:1025/005623.219001:ERROR:env.cc(258)] The platform failed to initialize. Exiting.

I found this --ozone-platform param that It permit me to open chromium. And my $DISPLAY = :0

chromium --ozone-platform=wayland

https://github.com/puppeteer/puppeteer/issues/8148#issuecomment-2436771650

If u having the same error yet try to change the param: chromium --ozone-platform=headless

chromium --ozone-platform=wayland

chromium --ozone-platform=x11

Reasons:
  • RegEx Blacklisted phrase (1): I'm getting the same error
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm getting the same error
  • Me too answer (0): having the same error
  • Low reputation (1):
Posted by: Gabriel Onohara