From 4854296b27b8ffb9eb4a6973695142491179a3f8 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 22 Mar 2022 18:48:58 +0200 Subject: [PATCH] xwayland: Make launcher not force EGL_PLATFORM It was added to work around Xwayland crashing at startup due to a mesa issue, see commit 58fa92e40bd3dd144101ed607b0030ed666b7083. It's been almost 6 years since that change. No other major wayland compositor forces EGL_PLATFORM, so lets remove the workaround. The main motivation behind this change is to get rid of code that's not straightforward and should be unnecessary in general. --- src/xwl/xwaylandlauncher.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/xwl/xwaylandlauncher.cpp b/src/xwl/xwaylandlauncher.cpp index 13869c1154..0d55dd140c 100644 --- a/src/xwl/xwaylandlauncher.cpp +++ b/src/xwl/xwaylandlauncher.cpp @@ -167,7 +167,6 @@ bool XwaylandLauncher::startInternal() m_xwaylandProcess->setProgram(QStringLiteral("Xwayland")); QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); env.insert("WAYLAND_SOCKET", QByteArray::number(wlfd)); - env.insert("EGL_PLATFORM", QByteArrayLiteral("DRM")); if (qEnvironmentVariableIsSet("KWIN_XWAYLAND_DEBUG")) { env.insert("WAYLAND_DEBUG", QByteArrayLiteral("1")); }