Godot Engine – Multi-platform 2D and 3D game engine
Use SCons way to detect wayland-scanner
Mike Savochkin7bac28b9680a
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.pyindex b1b07324707..f7aa9628afa 100644--- a/platform/linuxbsd/detect.py+++ b/platform/linuxbsd/detect.py@@ -237,7 +237,7 @@ def configure(env: "SConsEnvironment"):env.Append(CPPDEFINES=["SOWRAP_ENABLED"])if env["wayland"]:- if subprocess.run(["wayland-scanner", "-v"], capture_output=True, shell=True).returncode != 0:+ if not env.WhereIs("wayland-scanner"):print_warning("wayland-scanner not found. Disabling Wayland support.")env["wayland"] = False