Skip to content

Commit

Permalink
Merge pull request #45 from wmww/fix-39
Browse files Browse the repository at this point in the history
Try to dlopen libwayland-client.so.0 in addition to libwayland-client.so
  • Loading branch information
wmww authored Sep 5, 2024
2 parents 4712fd9 + 1e3d19a commit 2a8291a
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 2a8291a

Please sign in to comment.