Skip to Content

Troubleshootingturno browser doctor

An X server is running, but DISPLAY is not set

What turno browser doctor means by "DISPLAY is not set, but an X server is running here on <display>", and the fix.

View source

This page is for when turno browser doctor reports the finding below: what it means and how to fix it.

What you see

  !  DISPLAY is not set, but an X server is running here on <display>
     manual: set DISPLAY=<display> where turno-browser runs: export it in your shell profile, and for user services add DISPLAY=<display> to a file in ~/.config/environment.d/

It is a warning; warnings do not change the exit code. Words in angle brackets stand for values from your machine.

Why it happens

turno-browser drives a headed Chrome, which needs DISPLAY to find the X server. One is running on this machine (its socket is in /tmp/.X11-unix), often an Xvfb started as a user service, but this session does not have DISPLAY set, so Chrome cannot use it.

Fix

Set DISPLAY=<display> where turno-browser runs: export it in your shell profile, and for user services add DISPLAY=<display> to a file in ~/.config/environment.d/.

No single command fixes this one, so doctor names the manual step.

Then run turno browser doctor again to see the row turn into ok.

The check lives in packages/browser/src/doctor.ts.

On this page