depot/third_party/nixpkgs/pkgs/kde/plasma/plasma-integration/qml-path.patch
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

12 lines
658 B
Diff

diff --git a/qt6/src/platformtheme/kdeplatformtheme.cpp b/qt6/src/platformtheme/kdeplatformtheme.cpp
index fea04b5..7efafd1 100644
--- a/qt6/src/platformtheme/kdeplatformtheme.cpp
+++ b/qt6/src/platformtheme/kdeplatformtheme.cpp
@@ -551,6 +551,7 @@ bool KdePlatformTheme::checkIfThemeExists(const QString &themePath)
// QML_IMPORT_PATH is the new one, but QML2_IMPORT_PATH is still used
checkEnvironmentVariable("QML2_IMPORT_PATH");
checkEnvironmentVariable("QML_IMPORT_PATH");
+ checkEnvironmentVariable("NIXPKGS_QT6_QML_IMPORT_PATH");
for (const QString &path : moduleSearchPaths) {
if (QDir(path + themePath).exists()) {