[Gentoo] iBus broke Konsole "Ctrl+Shift+C/V"

Tuesday, August 24, 2010
0 意見
Situation:

After I upgrade my iBus to v1.3.7,the hotkey "Ctrl+Shift+C"(Copy) and "Ctrl+Shift+C"(Paste) in Konsole was broken. For example, I selected something in Konsole and pressed "Ctrl+Shift+C", and then switched the input focus to Chromium search bar and pressed "Ctrl+V", NOTHING pasted!

Enviroment:

gentoo-sources: 2.6.32-gentoo-r10 x86_64
kdebase-meta: 4.4.4
qt-core: 4.6.3
ibus: 1.3.7

Solution:

After trying few old version of ibus, I found the v1.3.4 works. I guess there might be something wrong with the "key-snooper" function, because ibus releases that came without "key-snooper" function enabled could work in my Gentoo box; however, I didn't spend much time on debugging this.
The following are just steps for a temporarily workaround:

  1. Download ibus-1.3.4.tar.gz from Google iBus Project.
  2. $ sudo cp ibus-1.3.4.tar.gz /usr/portage/distfiles
  3. $ cd /usr/portage/app-i18n/ibus/
  4. $ sudo cp ibus-1.3.7.ebuild ibus-1.3.4.ebuild
  5. $ sudo ebuild ibus-1.3.4.ebuild digest
  6. $ sudo ebuild ibus-1.3.4.ebuild merge

By using ebuild to install packages, we can still benefit from portage management (unmerge, gentoolkit…etc).

P.S.:

In the past, I usually put xx-input under /etc/X11/xinitrc/xinitrc.d/, but now I moved those variables settings to ~/.xprofile as suggestion during ibus installation.

export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="xim"
ibus-daemon -d -x

Keywords: ibus, Gentoo, Copy&Paste Broken