Skip to content

Commit

Permalink
Try to dlopen libwayland-client.so.0 in addition to libwayland-client.so
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww committed Sep 3, 2024
1 parent 4712fd9 commit 1e3d19a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libwayland-shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 1e3d19a

Please sign in to comment.