@@ -1,50 +0,0 @@
1−From 291f691400d4e85c57b57ec75482d2c6078ce26e Mon Sep 17 00:00:00 2001
2−From: Thomas Tuegel <ttuegel@mailbox.org>
3−Date: Wed, 9 Dec 2020 10:01:59 -0600
4−Subject: [PATCH] platform plugins path
5−
6−---
7− src/pluginwrapper.cpp | 27 +++++++++++++--------------
8− 1 file changed, 13 insertions(+), 14 deletions(-)
9−
10−diff --git a/src/pluginwrapper.cpp b/src/pluginwrapper.cpp
11−index a255d83..9699b08 100644
12−--- a/src/pluginwrapper.cpp
13−+++ b/src/pluginwrapper.cpp
14−@@ -25,20 +25,19 @@ static QStringList pluginCandidates()
15− {
16− QStringList ret;
17− const auto paths = QCoreApplication::libraryPaths();
18−- for (const QString &path : paths) {
19−- static const QStringList searchFolders{
20−- QStringLiteral("/kf5/org.kde.kwindowsystem.platforms"),
21−- QStringLiteral("/kf5/kwindowsystem"),
22−- };
23−- for (const QString &searchFolder : searchFolders) {
24−- QDir pluginDir(path + searchFolder);
25−- if (!pluginDir.exists()) {
26−- continue;
27−- }
28−- const auto entries = pluginDir.entryList(QDir::Files | QDir::NoDotAndDotDot);
29−- for (const QString &entry : entries) {
30−- ret << pluginDir.absoluteFilePath(entry);
31−- }
32−+ const QString path = QStringLiteral(NIXPKGS_QT_PLUGIN_PATH);
33−+ static const QStringList searchFolders {
34−+ QStringLiteral("/kf5/org.kde.kwindowsystem.platforms"),
35−+ QStringLiteral("/kf5/kwindowsystem"),
36−+ };
37−+ for (const QString &searchFolder : searchFolders) {
38−+ QDir pluginDir(path + searchFolder);
39−+ if (!pluginDir.exists()) {
40−+ continue;
41−+ }
42−+ const auto entries = pluginDir.entryList(QDir::Files | QDir::NoDotAndDotDot);
43−+ for (const QString &entry : entries) {
44−+ ret << pluginDir.absoluteFilePath(entry);
45− }
46− }
47− return ret;
48−--
49−2.28.0
50−