1 diff --git a/src/backendmanager.cpp b/src/backendmanager.cpp
2 index e1013d5..4bded53 100644
3 --- a/src/backendmanager.cpp
4 +++ b/src/backendmanager.cpp
5 @@ -164,18 +164,11 @@ QFileInfo BackendManager::preferredBackend(const QString &backend)
7 QFileInfoList BackendManager::listBackends()
9 - // Compile a list of installed backends first
10 - const QString backendFilter = QStringLiteral("KSC_*");
11 - const QStringList paths = QCoreApplication::libraryPaths();
12 - QFileInfoList finfos;
13 - for (const QString &path : paths) {
14 - const QDir dir(path + QStringLiteral("/kf" QT_STRINGIFY(QT_VERSION_MAJOR) "/kscreen/"),
16 - QDir::SortFlags(QDir::QDir::Name),
17 - QDir::NoDotAndDotDot | QDir::Files);
18 - finfos.append(dir.entryInfoList());
21 + const QDir dir(QLatin1String(NIXPKGS_LIBKSCREEN_BACKENDS),
22 + QStringLiteral("KSC_*"),
23 + QDir::SortFlags(QDir::QDir::Name),
24 + QDir::NoDotAndDotDot | QDir::Files);
25 + return dir.entryInfoList();
28 void BackendManager::setBackendArgs(const QVariantMap &arguments)