summaryrefslogtreecommitdiffstats
path: root/logic/BaseProcess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/BaseProcess.cpp')
-rw-r--r--logic/BaseProcess.cpp6
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