Skip to content

Commit

Permalink
FIX(client): Fix PipeWire not being usable in Flatpaks
Browse files Browse the repository at this point in the history
PipeWire is correctly built and enabled in a Flatpak runtime, but does
not properly intialize because the .so filename of the library is named
slightly differently there.

See also flathub/info.mumble.Mumble#19 (comment)
  • Loading branch information
Gert-dev committed Jan 27, 2022
1 parent 516d941 commit 29eb97c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/mumble/PipeWire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,15 @@ void PipeWireInit::destroy() {
static PipeWireInit pwi;

PipeWireSystem::PipeWireSystem() : m_ok(false), m_users(0) {
const QStringList names{ "libpipewire.so", "libpipewire-0.3.so" };
// clang-format off
const QStringList names {
// Common names used by Linux distributions.
"libpipewire.so",
"libpipewire-0.3.so",
// Name used by the Flatpak FreeDesktop runtime.
"libpipewire-0.3.so.0"
};
// clang-format on

for (const auto &name : names) {
m_lib.setFileName(name);
Expand Down

0 comments on commit 29eb97c

Please sign in to comment.