From 71a6d378d934ebe7506b18263aea33fb14e88478 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 14 Oct 2023 03:27:32 +0200 Subject: [PATCH] workerpool: Always search plugin path for tagreader on macOS --- ext/libstrawberry-common/core/workerpool.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/libstrawberry-common/core/workerpool.h b/ext/libstrawberry-common/core/workerpool.h index 6466319e..246f97f2 100644 --- a/ext/libstrawberry-common/core/workerpool.h +++ b/ext/libstrawberry-common/core/workerpool.h @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -245,8 +246,8 @@ void WorkerPool::DoStart() { search_path << "/usr/libexec"; search_path << "/usr/local/libexec"; #endif -#if defined(Q_OS_MACOS) && defined(USE_BUNDLE) - search_path << QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR; +#if defined(Q_OS_MACOS) + search_path << QDir::cleanPath(QCoreApplication::applicationDirPath() + "/../PlugIns"); #endif for (const QString &path_prefix : search_path) {