mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
Meta: Assume virgl support to not be present if ldconfig isn't found
This mirrors the behavior of the old run.sh script.
This commit is contained in:
parent
8b5d90734d
commit
9e1df152d9
1 changed files with 6 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue