From 892a831726a73e236c67b095005490de91334469 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 20 Jan 2017 13:36:19 -0600 Subject: [PATCH] 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. --- .../kde-5/plasma/plasma-desktop/ibus.patch | 26 +++++++++++++++++++ .../kde-5/plasma/plasma-desktop/series | 1 + 2 files changed, 27 insertions(+) create mode 100644 pkgs/desktops/kde-5/plasma/plasma-desktop/ibus.patch diff --git a/pkgs/desktops/kde-5/plasma/plasma-desktop/ibus.patch b/pkgs/desktops/kde-5/plasma/plasma-desktop/ibus.patch new file mode 100644 index 000000000000..d5ac4b250875 --- /dev/null +++ b/pkgs/desktops/kde-5/plasma/plasma-desktop/ibus.patch @@ -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; + } diff --git a/pkgs/desktops/kde-5/plasma/plasma-desktop/series b/pkgs/desktops/kde-5/plasma/plasma-desktop/series index 6334deb7d973..36778cd1c560 100644 --- a/pkgs/desktops/kde-5/plasma/plasma-desktop/series +++ b/pkgs/desktops/kde-5/plasma/plasma-desktop/series @@ -1,3 +1,4 @@ qml-import-paths.patch hwclock-path.patch tzdir.patch +ibus.patch