diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-01-17 23:05:34 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-01-17 23:05:34 +0100 |
commit | c6427caa9e78189cb819ef26aa358f681130d3fa (patch) | |
tree | 5a6a05ae1461ea0fe7fc6dd745b95baef6f59598 | |
parent | 0be0e822e49ec89e29cac29ea67fe8e6e26cc08f (diff) | |
download | MultiMC-c6427caa9e78189cb819ef26aa358f681130d3fa.tar MultiMC-c6427caa9e78189cb819ef26aa358f681130d3fa.tar.gz MultiMC-c6427caa9e78189cb819ef26aa358f681130d3fa.tar.lz MultiMC-c6427caa9e78189cb819ef26aa358f681130d3fa.tar.xz MultiMC-c6427caa9e78189cb819ef26aa358f681130d3fa.zip |
GH-734: block more java env variable holes.
-rw-r--r-- | logic/MinecraftProcess.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/logic/MinecraftProcess.cpp b/logic/MinecraftProcess.cpp index b9be8d05..eda50923 100644 --- a/logic/MinecraftProcess.cpp +++ b/logic/MinecraftProcess.cpp @@ -45,7 +45,17 @@ MinecraftProcess::MinecraftProcess(InstancePtr inst) : m_instance(inst) QProcessEnvironment env; - QStringList ignored = {"JAVA_ARGS", "CLASSPATH", "CONFIGPATH", "JAVA_HOME", "JRE_HOME"}; + QStringList ignored = + { + "JAVA_ARGS", + "CLASSPATH", + "CONFIGPATH", + "JAVA_HOME", + "JRE_HOME", + "_JAVA_OPTIONS", + "JAVA_OPTIONS", + "JAVA_TOOL_OPTIONS" + }; for(auto key: rawenv.keys()) { auto value = rawenv.value(key); |