mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
The example didn't work as `--headless` isn't part of `OS.get_cmdline_args()`' return value. This new approach also works if the binary automatically uses headless mode because it's the only display server built in the binary (which can be the case for custom builds). Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>