From 1e3d19a0f9e10045ad87927de08f997e30dcc2cd Mon Sep 17 00:00:00 2001 From: Sophie Winter Date: Mon, 2 Sep 2024 17:08:04 -0700 Subject: [PATCH] Try to dlopen libwayland-client.so.0 in addition to libwayland-client.so --- src/libwayland-shim.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libwayland-shim.c b/src/libwayland-shim.c index 05e757a..08be624 100644 --- a/src/libwayland-shim.c +++ b/src/libwayland-shim.c @@ -30,7 +30,10 @@ libwayland_shim_init () if (libwayland_shim_has_initialized ()) return; - void *handle = dlopen("libwayland-client.so", RTLD_LAZY); + void *handle = dlopen("libwayland-client.so.0", RTLD_LAZY); + if (handle == NULL) { + handle = dlopen("libwayland-client.so", RTLD_LAZY); + } if (handle == NULL) { g_error ("failed to dlopen libwayland"); }