Do not unset DISPLAY and XAUTHORITY for input method.

Those variable are required for XIM to work for Xwayland application.
This commit is contained in:
Weng Xuetian 2021-12-14 12:26:43 -08:00 committed by Xuetian Weng
parent 4bd9708503
commit 9e68357ce9

View file

@ -602,9 +602,7 @@ void InputMethod::startInputMethod()
QProcessEnvironment environment = kwinApp()->processStartupEnvironment();
environment.insert(QStringLiteral("WAYLAND_SOCKET"), QByteArray::number(socket));
environment.insert(QStringLiteral("QT_QPA_PLATFORM"), QStringLiteral("wayland"));
environment.remove("DISPLAY");
environment.remove("WAYLAND_DISPLAY");
environment.remove("XAUTHORITY");
m_inputMethodProcess = new Process(this);
m_inputMethodProcess->setProcessChannelMode(QProcess::ForwardedErrorChannel);