fix: support LD_* for OpenBSD

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-07-09 19:01:29 +02:00
parent 2d53c7c5b2
commit fd2b206997
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -91,7 +91,7 @@ QProcessEnvironment CleanEnviroment()
QStringList stripped =
{
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
"LD_LIBRARY_PATH",
"LD_PRELOAD",
#endif
@ -122,7 +122,7 @@ QProcessEnvironment CleanEnviroment()
qDebug() << "Env: stripped" << key << value << "to" << newValue;
}
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
// Strip IBus
// IBus is a Linux IME framework. For some reason, it breaks MC?
if (key == "XMODIFIERS" && value.contains(IBUS))