From c15a31eeabc82f11e607dfda0110aa6764bde5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 25 Aug 2025 10:11:48 +0200 Subject: [PATCH] Update lib search paths for all plugin types --- plugin/experiencepluginenergy.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/experiencepluginenergy.cpp b/plugin/experiencepluginenergy.cpp index 5a7a33a..35f7329 100644 --- a/plugin/experiencepluginenergy.cpp +++ b/plugin/experiencepluginenergy.cpp @@ -96,9 +96,16 @@ QStringList ExperiencePluginEnergy::pluginSearchDirs() const searchDirs << QString::fromUtf8(envDefaultPathData).split(':'); } } else { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) foreach (QString libraryPath, QCoreApplication::libraryPaths()) { searchDirs << libraryPath.replace("qt5", "nymea").replace("plugins", "energy"); } +#else + foreach (QString libraryPath, QCoreApplication::libraryPaths()) { + searchDirs << libraryPath.replace("qt6", "nymea").replace("plugins", "energy"); + } +#endif + searchDirs << QDir(QCoreApplication::applicationDirPath() + "/../lib/nymea/energy").absolutePath(); searchDirs << QDir(QCoreApplication::applicationDirPath() + "/../energy/").absolutePath(); searchDirs << QDir(QCoreApplication::applicationDirPath() + "/../../../energy/").absolutePath();