mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
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
2 changed files with 27 additions and 0 deletions
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
|
||||
hwclock-path.patch
|
||||
tzdir.patch
|
||||
ibus.patch
|
||||
|
|
Loading…
Reference in a new issue