mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Also specifically try loading libdbus-1.so.3
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
constexpr char libdbus_library_name[] = "libdbus-1.so";
|
constexpr char libdbus_library_name[] = "libdbus-1.so";
|
||||||
|
constexpr char libdbus_library_fallback_name[] = "libdbus-1.so.3";
|
||||||
|
|
||||||
std::atomic<void*> libdbus_handle = nullptr;
|
std::atomic<void*> libdbus_handle = nullptr;
|
||||||
std::mutex libdbus_mutex;
|
std::mutex libdbus_mutex;
|
||||||
@@ -76,9 +77,12 @@ bool setup_libdbus() {
|
|||||||
|
|
||||||
void* handle = dlopen(libdbus_library_name, RTLD_LAZY | RTLD_LOCAL);
|
void* handle = dlopen(libdbus_library_name, RTLD_LAZY | RTLD_LOCAL);
|
||||||
if (!handle) {
|
if (!handle) {
|
||||||
logger.log("Could not load '" + std::string(libdbus_library_name) +
|
handle = dlopen(libdbus_library_fallback_name, RTLD_LAZY | RTLD_LOCAL);
|
||||||
"', not sending desktop notifications");
|
if (!handle) {
|
||||||
return false;
|
logger.log("Could not load '" + std::string(libdbus_library_name) +
|
||||||
|
"', not sending desktop notifications");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define X(name) \
|
#define X(name) \
|
||||||
|
|||||||
Reference in New Issue
Block a user