diff --git a/main/main.cpp b/main/main.cpp index e1d53e7f1be..059172b14e5 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2631,10 +2631,12 @@ Error Main::setup2(bool p_show_boot_logo) { } } - if (prefer_wayland) { - display_driver = "wayland"; - } else { - display_driver = "default"; + if (display_driver.is_empty()) { + if (prefer_wayland) { + display_driver = "wayland"; + } else { + display_driver = "default"; + } } } }