1 From ca4c52a80532732243067eb00ec12b4ef84010a6 Mon Sep 17 00:00:00 2001
2 From: OPNA2608 <opna2608@protonmail.com>
3 Date: Tue, 30 Jan 2024 19:46:09 +0100
4 Subject: [PATCH] Nixpkgs versioned QML path
7 src/LomiriToolkit/uctheme.cpp | 6 ++++++
8 1 file changed, 6 insertions(+)
10 diff --git a/src/LomiriToolkit/uctheme.cpp b/src/LomiriToolkit/uctheme.cpp
11 index a10c89344..4b0653589 100644
12 --- a/src/LomiriToolkit/uctheme.cpp
13 +++ b/src/LomiriToolkit/uctheme.cpp
14 @@ -180,6 +180,12 @@ QStringList themeSearchPath()
15 pathList << QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation);
18 + // append versioned QML import path from Nixpkgs
19 + const QString nixpkgsQmlImportPath = QString::fromLocal8Bit(getenv("NIXPKGS_QT@qtVersion@_QML_IMPORT_PATH"));
20 + if (!nixpkgsQmlImportPath.isEmpty()) {
21 + pathList << nixpkgsQmlImportPath.split(':', QString::SkipEmptyParts);
24 // append QML import path(s); we must explicitly support env override here
25 const QString qml2ImportPath = QString::fromLocal8Bit(getenv("QML2_IMPORT_PATH"));
26 if (!qml2ImportPath.isEmpty()) {