File 0001-Also-set-QT_IM_MODULE-in-non-testing-mode.patch of Package sddm

From 10352e08aae4a683fa804010e47bdac459892406 Mon Sep 17 00:00:00 2001
From: David Edmundson <kde@davidedmundson.co.uk>
Date: Sun, 26 Mar 2017 16:05:02 +0100
Subject: [PATCH] Also set QT_IM_MODULE in non testing mode

QT_IM_MODULE is set from a config value, however it currently is only
set in testing mode
---
 src/daemon/Greeter.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/daemon/Greeter.cpp b/src/daemon/Greeter.cpp
index ff367ca..0240085 100644
--- a/src/daemon/Greeter.cpp
+++ b/src/daemon/Greeter.cpp
@@ -180,6 +180,7 @@ namespace SDDM {
             env.insert(QStringLiteral("XDG_VTNR"), QString::number(m_display->terminalId()));
             env.insert(QStringLiteral("XDG_SESSION_CLASS"), QStringLiteral("greeter"));
             env.insert(QStringLiteral("XDG_SESSION_TYPE"), m_display->sessionType());
+            env.insert(QStringLiteral("QT_IM_MODULE"), mainConfig.InputMethod.get());
 
             //some themes may use KDE components and that will automatically load KDE's crash handler which we don't want
             //counterintuitively setting this env disables that handler
-- 
2.12.0

openSUSE Build Service is sponsored by