2023-02-16 17:41:37 +00:00
|
|
|
diff --git a/src/backendmanager.cpp b/src/backendmanager.cpp
|
|
|
|
index e1013d5..4bded53 100644
|
|
|
|
--- a/src/backendmanager.cpp
|
|
|
|
+++ b/src/backendmanager.cpp
|
|
|
|
@@ -164,18 +164,11 @@ QFileInfo BackendManager::preferredBackend(const QString &backend)
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
QFileInfoList BackendManager::listBackends()
|
|
|
|
{
|
2023-02-16 17:41:37 +00:00
|
|
|
- // Compile a list of installed backends first
|
2020-04-24 23:36:52 +00:00
|
|
|
- const QString backendFilter = QStringLiteral("KSC_*");
|
|
|
|
- const QStringList paths = QCoreApplication::libraryPaths();
|
|
|
|
- QFileInfoList finfos;
|
|
|
|
- for (const QString &path : paths) {
|
2023-02-16 17:41:37 +00:00
|
|
|
- const QDir dir(path + QStringLiteral("/kf" QT_STRINGIFY(QT_VERSION_MAJOR) "/kscreen/"),
|
|
|
|
- backendFilter,
|
|
|
|
- QDir::SortFlags(QDir::QDir::Name),
|
|
|
|
- QDir::NoDotAndDotDot | QDir::Files);
|
2020-04-24 23:36:52 +00:00
|
|
|
- finfos.append(dir.entryInfoList());
|
|
|
|
- }
|
|
|
|
- return finfos;
|
|
|
|
+ const QDir dir(QLatin1String(NIXPKGS_LIBKSCREEN_BACKENDS),
|
|
|
|
+ QStringLiteral("KSC_*"),
|
|
|
|
+ QDir::SortFlags(QDir::QDir::Name),
|
|
|
|
+ QDir::NoDotAndDotDot | QDir::Files);
|
|
|
|
+ return dir.entryInfoList();
|
|
|
|
}
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
void BackendManager::setBackendArgs(const QVariantMap &arguments)
|