diff options
author | Joona <joonatoona@digitalfishfun.com> | 2017-08-22 15:23:35 -0700 |
---|---|---|
committer | Joona <joonatoona@digitalfishfun.com> | 2017-08-22 15:23:35 -0700 |
commit | 48274e889f2219545d2c3bea6cc3a0281e9a0c47 (patch) | |
tree | 0178e8464c04df3d01b7d744848aef4acf7b933d /api/logic/java/JavaChecker.cpp | |
parent | 9d3a84755517cbcf14cd07d2148cd416e38ea430 (diff) | |
download | MultiMC-48274e889f2219545d2c3bea6cc3a0281e9a0c47.tar MultiMC-48274e889f2219545d2c3bea6cc3a0281e9a0c47.tar.gz MultiMC-48274e889f2219545d2c3bea6cc3a0281e9a0c47.tar.lz MultiMC-48274e889f2219545d2c3bea6cc3a0281e9a0c47.tar.xz MultiMC-48274e889f2219545d2c3bea6cc3a0281e9a0c47.zip |
move env cleaning and clean before java test
Diffstat (limited to 'api/logic/java/JavaChecker.cpp')
-rw-r--r-- | api/logic/java/JavaChecker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/logic/java/JavaChecker.cpp b/api/logic/java/JavaChecker.cpp index ebbd80be..f0b71e48 100644 --- a/api/logic/java/JavaChecker.cpp +++ b/api/logic/java/JavaChecker.cpp @@ -1,4 +1,5 @@ #include "JavaChecker.h" +#include "JavaUtils.h" #include <FileSystem.h> #include <Commandline.h> #include <QFile> @@ -42,6 +43,7 @@ void JavaChecker::performCheck() process->setArguments(args); process->setProgram(m_path); process->setProcessChannelMode(QProcess::SeparateChannels); + process->setProcessEnvironment(CleanEnviroment()); qDebug() << "Running java checker: " + m_path + args.join(" ");; connect(process.get(), SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(finished(int, QProcess::ExitStatus))); |