From f16ccf9fba7ae6bafd7066d3ad5c1fddf1a24c11 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 14 Oct 2023 05:52:48 +0200 Subject: [PATCH] fix crash on pulseaudio --- src/patchbay.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/patchbay.cpp b/src/patchbay.cpp index 6dfa36c..8d68211 100644 --- a/src/patchbay.cpp +++ b/src/patchbay.cpp @@ -1,4 +1,5 @@ #include "patchbay.impl.hpp" +#include namespace vencord { @@ -28,6 +29,13 @@ namespace vencord if (!instance) { + auto handle = dlopen("libpipewire-0.3.so", RTLD_LAZY); + if (!handle) + { + throw std::runtime_error("libpipewire is not available"); + } + dlclose(handle); + instance = std::unique_ptr(new patchbay); }