1 From 5bf1785809baf6be7fb5904ce6cefdb761f2c278 Mon Sep 17 00:00:00 2001
2 From: Thomas Tuegel <ttuegel@mailbox.org>
3 Date: Tue, 17 Sep 2019 05:35:33 -0500
4 Subject: [PATCH 06/12] qtbase-gtk3
7 src/plugins/platformthemes/gtk3/main.cpp | 17 ++++++++++++++++-
8 1 file changed, 16 insertions(+), 1 deletion(-)
10 diff --git a/src/plugins/platformthemes/gtk3/main.cpp b/src/plugins/platformthemes/gtk3/main.cpp
11 index fb1c425d8e..bb8bab9795 100644
12 --- a/src/plugins/platformthemes/gtk3/main.cpp
13 +++ b/src/plugins/platformthemes/gtk3/main.cpp
16 #include <qpa/qplatformthemeplugin.h>
17 #include "qgtk3theme.h"
22 @@ -54,8 +55,22 @@ public:
23 QPlatformTheme *QGtk3ThemePlugin::create(const QString &key, const QStringList ¶ms)
26 - if (!key.compare(QLatin1String(QGtk3Theme::name), Qt::CaseInsensitive))
27 + if (!key.compare(QLatin1String(QGtk3Theme::name), Qt::CaseInsensitive)) {
29 +#ifdef NIXPKGS_QGTK3_XDG_DATA_DIRS
30 + QStringList XDG_DATA_DIRS = QFile::decodeName(qgetenv("XDG_DATA_DIRS")).split(':');
31 + XDG_DATA_DIRS << QLatin1String(NIXPKGS_QGTK3_XDG_DATA_DIRS);
32 + qputenv("XDG_DATA_DIRS", QFile::encodeName(XDG_DATA_DIRS.join(':')));
35 +#ifdef NIXPKGS_QGTK3_GIO_EXTRA_MODULES
36 + QStringList GIO_EXTRA_MODULES = QFile::decodeName(qgetenv("GIO_EXTRA_MODULES")).split(':');
37 + GIO_EXTRA_MODULES << QLatin1String(NIXPKGS_QGTK3_GIO_EXTRA_MODULES);
38 + qputenv("GIO_EXTRA_MODULES", QFile::encodeName(GIO_EXTRA_MODULES.join(':')));
41 return new QGtk3Theme;