26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
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
|
|
static QStringList pluginCandidates()
|
|
{
|
|
QStringList ret;
|
|
- const auto paths = QCoreApplication::libraryPaths();
|
|
- for (const QString &path : paths) {
|
|
- QDir pluginDir(path + QLatin1String("/kf5/org.kde.kwindowsystem.platforms"));
|
|
- if (!pluginDir.exists()) {
|
|
- continue;
|
|
- }
|
|
- const auto entries = pluginDir.entryList(QDir::Files | QDir::NoDotAndDotDot);
|
|
- for (const QString &entry : entries) {
|
|
- ret << pluginDir.absoluteFilePath(entry);
|
|
- }
|
|
+ QDir pluginDir(QLatin1String(NIXPKGS_QT_PLUGIN_PATH) + QLatin1Literal("/kf5/org.kde.kwindowsystem.platforms"));
|
|
+ const auto entries = pluginDir.entryList(QDir::Files | QDir::NoDotAndDotDot);
|
|
+ for (const QString &entry : entries) {
|
|
+ ret << pluginDir.absoluteFilePath(entry);
|
|
}
|
|
return ret;
|
|
}
|