Use shared-library sonames for runtime dlopen paths.
Installed plugin libs ship libFoo.so.N without the linker namelink (libFoo.so); load by soname so snaps and NAMELINK_SKIP installs work. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -223,9 +223,9 @@ static sscl::co::ViralNonPostingInvoker<int> xcbWindow_initializeCInd(void)
|
||||
}
|
||||
|
||||
// Try to load libxcbXorg using the search path hook
|
||||
auto libPath = smoHooksPtr->searchForLibInSmoSearchPaths("libxcbXorg.so");
|
||||
auto libPath = smoHooksPtr->searchForLibInSmoSearchPaths("libxcbXorg.so.0");
|
||||
xcbXorg.dlopenHandle = dlopen(
|
||||
libPath.value_or("libxcbXorg.so").c_str(),
|
||||
libPath.value_or("libxcbXorg.so.0").c_str(),
|
||||
RTLD_LAZY);
|
||||
|
||||
if (!xcbXorg.dlopenHandle)
|
||||
|
||||
Reference in New Issue
Block a user