2020-04-24 23:36:52 +00:00
|
|
|
Index: libkscreen-5.9.4/src/backendmanager.cpp
|
|
|
|
===================================================================
|
|
|
|
--- libkscreen-5.9.4.orig/src/backendmanager.cpp
|
|
|
|
+++ libkscreen-5.9.4/src/backendmanager.cpp
|
2021-03-19 17:17:44 +00:00
|
|
|
@@ -172,14 +172,11 @@ QFileInfo BackendManager::preferredBackend(const QString &backend)
|
2020-04-24 23:36:52 +00:00
|
|
|
QFileInfoList BackendManager::listBackends()
|
|
|
|
{
|
|
|
|
// Compile a list of installed backends first
|
|
|
|
- const QString backendFilter = QStringLiteral("KSC_*");
|
|
|
|
- const QStringList paths = QCoreApplication::libraryPaths();
|
|
|
|
- QFileInfoList finfos;
|
|
|
|
- for (const QString &path : paths) {
|
2021-03-19 17:17:44 +00:00
|
|
|
- const QDir dir(path + QLatin1String("/kf5/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();
|
|
|
|
}
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
KScreen::AbstractBackend *BackendManager::loadBackendPlugin(QPluginLoader *loader, const QString &name, const QVariantMap &arguments)
|