Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest --headless CLI argument in DisplayServer not found error message #86409

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Dec 21, 2023

This is helpful for newcomers setting up Godot on CI, as this provides automatic guidance as for why it doesn't run out of the box if there's no X11 server available.

Preview

❯ DISPLAY=:1 bin/godot.linuxbsd.editor.x86_64
Godot Engine v4.3.dev.custom_build.9d1cbab1c - https://godotengine.org
ERROR: X11 Display is not available
   at: DisplayServerX11 (platform/linuxbsd/x11/display_server_x11.cpp:5831)

(zenity:37282): Gtk-WARNING **: 23:42:09.860: Failed to open display
ERROR: Unable to create DisplayServer, all display drivers failed.
Use "--headless" command line argument to run the engine in headless mode if this is desired (e.g. for continuous integration).
   at: setup2 (main/main.cpp:2466)

…ssage

This is helpful for newcomers setting up Godot on CI, as this provides
automatic guidance as for why it doesn't run out of the box if
there's no X11 server available.
@Calinou Calinou requested a review from a team as a code owner December 21, 2023 22:43
@Calinou Calinou added this to the 4.3 milestone Dec 21, 2023
@YuriSizov YuriSizov merged commit ebbc985 into godotengine:master Dec 22, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@Calinou Calinou deleted the displayserver-failure-message-suggest-headless branch December 22, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants