2017-04-14 11:39:38 +01:00
|
|
|
Index: libkscreen-5.9.4/src/backendmanager.cpp
|
|
|
|
===================================================================
|
|
|
|
--- libkscreen-5.9.4.orig/src/backendmanager.cpp
|
|
|
|
+++ libkscreen-5.9.4/src/backendmanager.cpp
|
|
|
|
@@ -178,17 +178,11 @@ QFileInfo BackendManager::preferredBacke
|
|
|
|
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) {
|
|
|
|
- const QDir dir(path + QLatin1String("/kf5/kscreen/"),
|
|
|
|
- backendFilter,
|
|
|
|
- QDir::SortFlags(QDir::QDir::Name),
|
|
|
|
- QDir::NoDotAndDotDot | QDir::Files);
|
|
|
|
- finfos.append(dir.entryInfoList());
|
|
|
|
- }
|
|
|
|
- return finfos;
|
2017-05-23 17:01:19 +01:00
|
|
|
+ const QDir dir(QLatin1String(NIXPKGS_LIBKSCREEN_BACKENDS),
|
2017-04-14 11:39:38 +01:00
|
|
|
+ QStringLiteral("KSC_*"),
|
|
|
|
+ QDir::SortFlags(QDir::QDir::Name),
|
|
|
|
+ QDir::NoDotAndDotDot | QDir::Files);
|
|
|
|
+ return dir.entryInfoList();
|
|
|
|
}
|
|
|
|
|
|
|
|
KScreen::AbstractBackend *BackendManager::loadBackendPlugin(QPluginLoader *loader, const QString &name,
|