JUCE 6 Projucer and headless Linux

The Projucer is now failing on my Linux builds with the error:

ERROR: System doesn't support 32, 24 or 16 bit RGB display.

I’m doing the following before running the Projucer:

  export GDK_BACKEND=x11

  Xvfb :99 &
  export DISPLAY=:99
  sleep 5

I thought it should run headless now without issues. How do I enable?

You no longer need to use xvfb as it’ll detect that there isn’t a display and run headlessly.