workerpool: Always search plugin path for tagreader on macOS

This commit is contained in:
Jonas Kvinge 2023-10-14 03:27:32 +02:00
parent 99a5aee8b3
commit 71a6d378d9
1 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@
#include <QMutex>
#include <QLocalServer>
#include <QProcess>
#include <QDir>
#include <QFile>
#include <QList>
#include <QQueue>
@ -245,8 +246,8 @@ void WorkerPool<HandlerType>::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) {