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:
parent
7a92f2aab4
commit
892a831726
26
pkgs/desktops/kde-5/plasma/plasma-desktop/ibus.patch
Normal file
26
pkgs/desktops/kde-5/plasma/plasma-desktop/ibus.patch
Normal 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;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
qml-import-paths.patch
|
qml-import-paths.patch
|
||||||
hwclock-path.patch
|
hwclock-path.patch
|
||||||
tzdir.patch
|
tzdir.patch
|
||||||
|
ibus.patch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user