kde5.plasma-desktop: don't stop ibus

Stopping ibus when keyboards are hotplugged causes applications to lose
input. See https://bugs.kde.org/show_bug.cgi?id=359109 for more details.
This commit is contained in:
Thomas Tuegel 2017-01-20 13:36:19 -06:00
parent 7a92f2aab4
commit 892a831726
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,26 @@
Index: plasma-desktop-5.8.5/kcms/keyboard/xkb_helper.cpp
===================================================================
--- plasma-desktop-5.8.5.orig/kcms/keyboard/xkb_helper.cpp
+++ plasma-desktop-5.8.5/kcms/keyboard/xkb_helper.cpp
@@ -185,21 +185,5 @@ bool XkbHelper::initializeKeyboardLayout
bool XkbHelper::preInitialize()
{
- // stop ibus so it does not mess with our layouts, we can remove this when we integrate IM into keyboard module
-
- QString ibusExe = QStandardPaths::findExecutable(QStringLiteral("ibus"));
- if( ibusExe.isEmpty() ) {
- return 0;
- }
-
- KProcess ibusProcess;
- ibusProcess << ibusExe << QStringLiteral("exit");
- ibusProcess.setOutputChannelMode(KProcess::SeparateChannels);
- int res = ibusProcess.execute();
-
- if( res == 0 ) {
- qCWarning(KCM_KEYBOARD) << "ibus successfully stopped";
- }
-
return 0;
}

View file

@ -1,3 +1,4 @@
qml-import-paths.patch
hwclock-path.patch
tzdir.patch
ibus.patch