xwayland/xwaylandlauncher: don't enable WAYLAND_DEBUG with KWIN_XWAYLAND_DEBUG=0

This commit is contained in:
Xaver Hugl 2024-02-01 18:08:52 +01:00
parent c733e7a7b6
commit 880ce92fb2

View file

@ -189,7 +189,7 @@ bool XwaylandLauncher::start()
m_xwaylandProcess->setProgram(QStringLiteral("Xwayland"));
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert("WAYLAND_SOCKET", QByteArray::number(wlfd));
if (qEnvironmentVariableIsSet("KWIN_XWAYLAND_DEBUG")) {
if (qEnvironmentVariableIntValue("KWIN_XWAYLAND_DEBUG") == 1) {
env.insert("WAYLAND_DEBUG", QByteArrayLiteral("1"));
}
m_xwaylandProcess->setProcessEnvironment(env);