From 551556ad0617aabb676b7de0be741a746b406b09 Mon Sep 17 00:00:00 2001 From: GloriousEggroll Date: Mon, 26 Feb 2024 23:55:19 -0700 Subject: [PATCH] musl cannot run this natively. disable if running on musl based system. resolves #13 --- ULWGL/ulwgl_run.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ULWGL/ulwgl_run.py b/ULWGL/ulwgl_run.py index 6dfce298..e990c4d0 100755 --- a/ULWGL/ulwgl_run.py +++ b/ULWGL/ulwgl_run.py @@ -15,6 +15,15 @@ from ulwgl_log import log, console_handler, debug_formatter from ulwgl_util import UnixUser +def is_musl_system() -> bool: + """Check if the system uses musl libc.""" + # Check for the presence of musl-specific paths in LD_LIBRARY_PATH + return 'musl' in os.environ.get('LD_LIBRARY_PATH', '') + +if is_musl_system(): + print("This script is not designed to run on musl-based systems.") + sys.exit(1) + verbs: Set[str] = { "waitforexitandrun", "run",