From 9e1df152d9a2e4720bff25a174625ba85ecb2ffc Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 16 Dec 2023 22:13:24 +0100 Subject: [PATCH] Meta: Assume virgl support to not be present if ldconfig isn't found This mirrors the behavior of the old run.sh script. --- Meta/run.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Meta/run.py b/Meta/run.py index e354ac932e..00113b9e88 100755 --- a/Meta/run.py +++ b/Meta/run.py @@ -534,8 +534,12 @@ def setup_audio_hardware(config: Configuration): def has_virgl() -> bool: - ldconfig_result = run(["ldconfig", "-p"], capture_output=True, encoding="utf-8").stdout.lower() - return "virglrenderer" in ldconfig_result + try: + ldconfig_result = run(["ldconfig", "-p"], capture_output=True, encoding="utf-8").stdout.lower() + return "virglrenderer" in ldconfig_result + except FileNotFoundError: + print("Warning: ldconfig not found in PATH, assuming virgl support to not be present.") + return False def setup_screens(config: Configuration):