[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
icc-effect-5.14.5
Martin Gräßlin 2015-12-04 16:09:47 +01:00
parent 7c8adeff9e
commit e2dc6380d1
1 changed files with 1 additions and 0 deletions

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,