mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03: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
Notes:
sideshowbarker
2024-07-17 00:23:42 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/9e1df152d9 Pull-request: https://github.com/SerenityOS/serenity/pull/22339 Issue: https://github.com/SerenityOS/serenity/issues/22313
@ -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…
Reference in New Issue
Block a user