From 880ce92fb2d75e2a9f607881ed0c7d73ad1b25dd Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 1 Feb 2024 18:08:52 +0100 Subject: [PATCH] xwayland/xwaylandlauncher: don't enable WAYLAND_DEBUG with KWIN_XWAYLAND_DEBUG=0 --- src/xwayland/xwaylandlauncher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xwayland/xwaylandlauncher.cpp b/src/xwayland/xwaylandlauncher.cpp index 53789de5b9..d3a1c3a921 100644 --- a/src/xwayland/xwaylandlauncher.cpp +++ b/src/xwayland/xwaylandlauncher.cpp @@ -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);