0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-05 08:11:16 +00:00
Files
termux-packages/x11-packages/electron-host-tools-for-code-oss/cr-patches/1013-chromium-crypt-fix-dynamic-loaded-libraries.patch
2025-05-12 15:06:25 +08:00

15 lines
535 B
Diff

--- a/components/os_crypt/sync/libsecret_util_linux.cc
+++ b/components/os_crypt/sync/libsecret_util_linux.cc
@@ -102,7 +102,11 @@
if (libsecret_loaded_)
return true;
+#ifdef __TERMUX__
+ static void* handle = dlopen("libsecret-1.so", RTLD_NOW | RTLD_GLOBAL);
+#else
static void* handle = dlopen("libsecret-1.so.0", RTLD_NOW | RTLD_GLOBAL);
+#endif
if (!handle) {
// We wanted to use libsecret, but we couldn't load it. Warn, because
// either the user asked for this, or we autodetected it incorrectly. (Or