2019-11-14 00:26:20 +00:00
|
|
|
Index: kwindowsystem-5.64.0/src/pluginwrapper.cpp
|
|
|
|
===================================================================
|
|
|
|
--- kwindowsystem-5.64.0.orig/src/pluginwrapper.cpp
|
|
|
|
+++ kwindowsystem-5.64.0/src/pluginwrapper.cpp
|
|
|
|
@@ -37,16 +37,10 @@ Q_GLOBAL_STATIC(KWindowSystemPluginWrapp
|
2017-04-18 14:11:17 +01:00
|
|
|
static QStringList pluginCandidates()
|
|
|
|
{
|
|
|
|
QStringList ret;
|
2019-11-14 00:26:20 +00:00
|
|
|
- const auto paths = QCoreApplication::libraryPaths();
|
|
|
|
- for (const QString &path : paths) {
|
2019-09-16 01:29:32 +01:00
|
|
|
- QDir pluginDir(path + QLatin1String("/kf5/org.kde.kwindowsystem.platforms"));
|
2017-04-18 14:11:17 +01:00
|
|
|
- if (!pluginDir.exists()) {
|
|
|
|
- continue;
|
|
|
|
- }
|
2019-11-14 00:26:20 +00:00
|
|
|
- const auto entries = pluginDir.entryList(QDir::Files | QDir::NoDotAndDotDot);
|
|
|
|
- for (const QString &entry : entries) {
|
2017-04-18 14:11:17 +01:00
|
|
|
- ret << pluginDir.absoluteFilePath(entry);
|
|
|
|
- }
|
2017-05-23 17:02:49 +01:00
|
|
|
+ QDir pluginDir(QLatin1String(NIXPKGS_QT_PLUGIN_PATH) + QLatin1Literal("/kf5/org.kde.kwindowsystem.platforms"));
|
2019-09-16 01:29:32 +01:00
|
|
|
+ const auto entries = pluginDir.entryList(QDir::Files | QDir::NoDotAndDotDot);
|
|
|
|
+ for (const QString &entry : entries) {
|
2017-04-18 14:11:17 +01:00
|
|
|
+ ret << pluginDir.absoluteFilePath(entry);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|