diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-06-08 23:54:30 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-06-08 23:54:30 +0200 |
commit | 38e42ad79493afb759181fa5cead90c9b3483655 (patch) | |
tree | 3c580f3fbaab794b39ff57b6c91b872ed2075b44 /logic/BaseProcess.cpp | |
parent | 6d7bff2476459049f4f554291a680e0f6003ea66 (diff) | |
download | PrismLauncher-38e42ad79493afb759181fa5cead90c9b3483655.tar.gz PrismLauncher-38e42ad79493afb759181fa5cead90c9b3483655.tar.bz2 PrismLauncher-38e42ad79493afb759181fa5cead90c9b3483655.zip |
GH-1049 fix bad ifdefs that prevent linux-specific env blacklisting
Diffstat (limited to 'logic/BaseProcess.cpp')
-rw-r--r-- | logic/BaseProcess.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/BaseProcess.cpp b/logic/BaseProcess.cpp index 9d429605..b9aa295c 100644 --- a/logic/BaseProcess.cpp +++ b/logic/BaseProcess.cpp @@ -20,6 +20,8 @@ #include <QDir> #include <QEventLoop> +#define IBUS "@im=ibus" + MessageLevel::Enum MessageLevel::getLevel(const QString& levelName) { if (levelName == "MultiMC") @@ -82,7 +84,7 @@ void BaseProcess::init() qDebug() << "Env: ignoring" << key << value; continue; } -#ifdef LINUX +#ifdef Q_OS_LINUX // Do not pass LD_* variables to java. They were intended for MultiMC if(key.startsWith("LD_")) { @@ -101,7 +103,7 @@ void BaseProcess::init() qDebug() << "Env: " << key << value; env.insert(key, value); } -#ifdef LINUX +#ifdef Q_OS_LINUX // HACK: Workaround for QTBUG-42500 env.insert("LD_LIBRARY_PATH", ""); #endif |