summaryrefslogtreecommitdiffstats
path: root/src/libs/installer
diff options
context:
space:
mode:
authorVille Nummela <ville.nummela@jolla.com>2021-07-30 07:40:56 +0300
committerVille Nummela <ville.nummela@jolla.com>2021-09-01 11:48:56 +0300
commit08a123c86b9aae85da1be1542578de060df4868b (patch)
tree5cce90a5bbb3741474037567fbaadfb7301226e8 /src/libs/installer
parent9729cdff85eb1aef0c1713b5b0d811fe9af50d2b (diff)
Apply environment changes to system environment
Fixes: QTIFW-2288 Change-Id: I49e82485939f220fe51ab52d2abe406fd6e4881f Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer')
-rw-r--r--src/libs/installer/elevatedexecuteoperation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/elevatedexecuteoperation.cpp b/src/libs/installer/elevatedexecuteoperation.cpp
index 4ca9a8e59..fb1778fe0 100644
--- a/src/libs/installer/elevatedexecuteoperation.cpp
+++ b/src/libs/installer/elevatedexecuteoperation.cpp
@@ -169,7 +169,7 @@ int ElevatedExecuteOperation::Private::run(QStringList &arguments, const Operati
<< workingDirectory;
}
- QProcessEnvironment penv;
+ QProcessEnvironment penv = QProcessEnvironment::systemEnvironment();
// there is no way to serialize a QProcessEnvironment properly other than per mangled QStringList:
// (i.e. no other way to list all keys)
process->setEnvironment(KDUpdater::Environment::instance().applyTo(penv).toStringList());