[wayland] Pass processStartupEnvironment to ScreenLocker

Need to pass a proper env to ScreenLocker to ensure we don't mess
with the greeter's environment by e.g. unsetting QT_IM_MODULE or
setting EGL_PLATFORM.

Reviewed-By: Bhushan Shah
This commit is contained in:
Martin Gräßlin 2015-12-04 16:09:47 +01:00
parent 7c8adeff9e
commit e2dc6380d1

View file

@ -237,6 +237,7 @@ void WaylandServer::initWorkspace()
ScreenLocker::KSldApp::self();
ScreenLocker::KSldApp::self()->setWaylandDisplay(m_display);
ScreenLocker::KSldApp::self()->setGreeterEnvironment(kwinApp()->processStartupEnvironment());
ScreenLocker::KSldApp::self()->initialize();
connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::greeterClientConnectionChanged, this,