Can't manage to config ibus on KDE (Kubuntu 12.04)

1,053 views
Skip to first unread message

SunWukong

unread,
Jun 20, 2012, 1:54:04 PM6/20/12
to ibus-user
Hello all,

I try to configure ibus so that my wife can write in Traditionnal
Chinese, but after having try everything, it still doesn't work.
I confirm that ibus-demon is running in the background, launched with
the --xim option

My user .bashrc end with :
#
export GTK_IM_MODULE=ibus
export XMODIFIERS="@im=ibus"
export QT_IM_MODULE=ibus

There's no icon in the taskbar /notification area that would indicate
me which layout is active.
CTRL-Space doesn't change the layout

If I run ibus-setup, everything looks OK *but* the second tab where
I'm supposed to choose my favorite input methods, sorted from top to
bottom : I can click on arrow of the list and then the list shows
Chinese (and Japanese as I installed another language to see if that
can change things). But thoses choices are grayed/disabled and i
cannot select anything.

Then I tried to use some GNOME GUI to configure ibus. The result is
that the icon to add a new language in the KDE control center doesn't
appear anymore.

So any help would be gre

SunWukong

unread,
Jun 20, 2012, 1:56:03 PM6/20/12
to ibus-user
So any help would be greatly appreciated.
Does anyone know where are ibus config files and how to set them
manually ?

Icing on the cake, I can't read/write chinese ;-)
Thanks

Peng Huang

unread,
Jun 20, 2012, 1:58:11 PM6/20/12
to ibus...@googlegroups.com
Which Linux distribution are you using? and version?
How did you build and install ibus? What's the version?

Peng


--
You received this message because you are subscribed to the Google
Groups "ibus-user" group.
iBus project web page: http://code.google.com/p/ibus/
iBus project group: http://groups.google.com/group/ibus-user?hl=en

SunWukong

unread,
Jun 20, 2012, 2:10:21 PM6/20/12
to ibus-user


On 20 juin, 19:58, Peng Huang <shawn.p.hu...@gmail.com> wrote:
> Which Linux distribution are you using? and version?
> How did you build and install ibus? What's the version?
>
> Peng

Hi Peng
I' currently dealing with Kubuntu 12.04 64 bits and the official ibus
packages in version 1.4.1
I tried and failed to compile the source : after (./autogen.sh --
prefix='/usr' --sysconfdir='/etc' --libdir='/usr/lib' --enable-gtk-
doc)
i got :
configure.ac:274: error: possibly undefined macro: AM_GCONF_SOURCE_2
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.


Peng Huang

unread,
Jun 20, 2012, 2:12:20 PM6/20/12
to ibus...@googlegroups.com
Please try:
  1. run $ im-switch -s ibus
  2. logout and re-login

SunWukong

unread,
Jun 20, 2012, 2:34:49 PM6/20/12
to ibus-user


On 20 juin, 20:12, Peng Huang <shawn.p.hu...@gmail.com> wrote:
> Please try:
>
>    1. run $ im-switch -s ibus
>    2. logout and re-login

nothing new :-(

Peng Huang

unread,
Jun 20, 2012, 3:00:03 PM6/20/12
to ibus...@googlegroups.com
Could you please try re-install all ibus related packages and restart your computer?

And in ibus-setup second tab, did you find any check box like "select ime by local". If have it, please try uncheck it.


SunWukong

unread,
Jun 20, 2012, 5:38:07 PM6/20/12
to ibus-user


On 20 juin, 21:00, Peng Huang <shawn.p.hu...@gmail.com> wrote:
> Could you please try re-install all ibus related packages and restart your
> computer?
same problem...

> And in ibus-setup second tab, did you find any check box like "select ime
> by local". If have it, please try uncheck it.
I tried that before uninstalling and played with after reinstalling
the ibus packages : same.

May it be linked to my locales ? Here are they :

LANG=fr_FR.UTF-8
LANGUAGE=fr:zh_TW:en
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=

Thanks for your help.
Because of time zone, I won't read more before tomorrow ;-)

Peng Huang

unread,
Jun 20, 2012, 5:55:53 PM6/20/12
to ibus...@googlegroups.com
I suggest posting your question in some Chinese ubuntu forum. Maybe they could give you more helpful information.

pansz

unread,
Jun 20, 2012, 8:45:36 PM6/20/12
to ibus...@googlegroups.com
中文 kubuntu 论坛可能没有太大帮助,因为他们往往只有一句话回复这个:安装 fcitx。我被同样的问题困扰了好几年。

在 kubuntu 上面配置 ibus 似乎是个历时已久,一直存在的问题,这个问题是选词窗口没有,而且输入法状态条窗口也没有,简而言之就是属于 ibus 的显示窗口都没有。——但是在这个状态下 ibus 仍然能够正常输入,如果你的输入法可以盲打的话,或者你不介意输入任何字符都选择第一个选项。

在我们办公室中,某些人的 kubuntu 能够正常使用 ibus,而另外一些人的就不行,而至今没有人能拿出比较完美的解决方案。——我曾经碰巧把显示窗口搞出来过,可是后来随着 kubuntu 的升级,这窗口又不见了。

所以现在的情况是:我相信需要得有一个人静下心来调试一下 kubuntu 中 ibus 窗口不显示的问题究竟在哪。网上的解决方案我已经找了一两年了,无一有效。

Ma Xiaojun

unread,
Jun 21, 2012, 2:57:41 AM6/21/12
to ibus...@googlegroups.com
Have you installed "ibus-qt4" package?
You can check the installation status by the following command.
dpkg -l ibus-qt4

pansz

unread,
Jun 21, 2012, 3:15:47 AM6/21/12
to ibus...@googlegroups.com
poet:~$ dpkg -l ibus-qt4
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version                 Description
+++-=======================-=======================-==============================================================
ii  ibus-qt4                1.3.1-2ubuntu2          qt-immodule for ibus (QT4)


poet:~$ aptitude search ibus |grep ^i
i A gir1.2-ibus-1.0                 - Intelligent Input Bus - introspection data
i A ibus                            - Intelligent Input Bus - core             
i   ibus-clutter                    - ibus input method framework for clutter  
i   ibus-gtk                        - Intelligent Input Bus - GTK+2 support    
i A ibus-pinyin                     - Pinyin engine for IBus                   
i A ibus-pinyin-db-open-phrase      - Pinyin engine for IBus - open-phrase datab
i   ibus-qt4                        - qt-immodule for ibus (QT4)               
i   ibus-sunpinyin                  - sunpinyin engine for ibus                
i A ibus-table                      - table engine for IBus                    
i A ibus-table-wubi                 - ibus-table input method: Wubi            
i A libibus-1.0-0                   - Intelligent Input Bus - shared library   
i   libibus-1.0-dev                 - Intelligent Input Bus - development file 
i   libibus-qt-dev                  - qt-immodule for ibus (QT4)               
i   libibus-qt1                     - qt-immodule for ibus (QT4)               
i   libusb-0.1-4                    - 用户空间的 USB 编程库                    
i   libusb-1.0-0                    - 用户空间的 USB 编程库                    
i   libusbmuxd1                     - USB multiplexor daemon for iPhone and iPod
i A python-ibus                     - Intelligent Input Bus - Python support   

poet:~$ im-switch -l
Your input method setup under zh_CN locale as below.
=======================================================
The configuration "/home/poet/.xinput.d/zh_CN" is defined as a link pointing to
ibus
This private configuration supersedes the system wide default.
=======================================================
The system wide default is pointed by "/etc/alternatives/xinput-zh_CN" .
xinput-zh_CN - auto mode
  link currently points to scim-bridge
ibus - priority 60
scim - priority 0
scim-bridge - priority 60
scim-immodule - priority 50
scim-pinyin - priority 50
Current 'best' version is 'ibus'.
=======================================================
The available input method configuration files are:
default default-xim ibus ibus.dpkg-old ibus-kde lo-gtk none scim scim-bridge scim-immodule scim-pinyin th-gtk th-xim
=======================================================



Ma Xiaojun

unread,
Jun 21, 2012, 10:12:12 AM6/21/12
to ibus...@googlegroups.com
Hi, all.

I just downloaded Kubuntu 12.04 64bit and installed into VirtualBox.

I haven't made ibus work yet.

There is no icon in KDE tray.
There is no language panel.
There is no candidate window when inputting.

Peng Huang

unread,
Jun 21, 2012, 11:12:18 AM6/21/12
to ibus...@googlegroups.com
Could you please try run 
/usr/libexec/ibus-ui-gtk2 or ibus-ui-gtk3 in term? 
The path of those two file maybe different in ubunutu.



Ma Xiaojun

unread,
Jun 21, 2012, 12:00:29 PM6/21/12
to ibus...@googlegroups.com
$ dpkg -L ibus | tail
/usr/bin
/usr/bin/ibus-daemon
/usr/bin/ibus-setup
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/ibus
/usr/lib/x86_64-linux-gnu/ibus/ibus-x11
/usr/lib/x86_64-linux-gnu/ibus/ibus-ui-gtk
/usr/lib/x86_64-linux-gnu/ibus/ibus-gconf
/usr/share/doc/ibus/changelog.Debian.gz

$ /usr/lib/x86_64-linux-gnu/ibus/ibus-ui-gtk
Traceback (most recent call last):
File "/usr/share/ibus/ui/gtk/main.py", line 133, in <module>
main()
File "/usr/share/ibus/ui/gtk/main.py", line 128, in main
launch_panel(replace)
File "/usr/share/ibus/ui/gtk/main.py", line 95, in launch_panel
UIApplication(replace).run()
File "/usr/share/ibus/ui/gtk/main.py", line 52, in __init__
self.__panel = panel.Panel(self.__bus)
File "/usr/share/ibus/ui/gtk/panel.py", line 141, in __init__
self.__appindicator_update_menu()
File "/usr/share/ibus/ui/gtk/panel.py", line 557, in
__appindicator_update_menu
item.set_image(_icon.IconWidget("gtk-info", size[0]))
File "/usr/share/ibus/ui/gtk/icon.py", line 38, in __init__
pixbuf = theme.load_icon(gtk.STOCK_MISSING_IMAGE, size, 0)
glib.GError: Icon 'gtk-missing-image' not present in theme

Peng Huang

unread,
Jun 21, 2012, 12:06:26 PM6/21/12
to ibus...@googlegroups.com
Looks like kubuntu does not installed some gtk icons which is needed by ibus. Could you please install them? I think those icons should be in some gtk related package.

Ma Xiaojun

unread,
Jun 21, 2012, 12:08:35 PM6/21/12
to ibus...@googlegroups.com
Hi, all.
The following command works around the above error!!
sudo apt-get install gnome-icon-theme

It seems that ibus package in Debian/Ubuntu needs to add an dependency.

Reference:
https://bugs.launchpad.net/ubuntu/+bug/854333/

Peng Huang

unread,
Jun 21, 2012, 12:09:49 PM6/21/12
to ibus...@googlegroups.com
In fedora, those icons are from gnome-icon-theme-3.2.1.2-1.fc16.noarch or gnome-icon-theme-legacy-3.2.1.2-1.fc16.noarch orgnome-themes-standard-3.2.1-2.fc16.x86_64   oxygen-icon-theme-4.8.3-1.fc16.noarch and etc

Ma Xiaojun

unread,
Jun 21, 2012, 12:40:25 PM6/21/12
to ibus...@googlegroups.com

SunWukong

unread,
Jun 22, 2012, 6:17:06 AM6/22/12
to ibus-user
Hi all,

Thanks for your help. I installed that icon package and now it works
better : the ibus UI has its icon in the notification panel. But...
...Wow... some weird appeared live right now !
I was about to report that as before the second tab of that UI
presents me a dropdown listbox where I have to define an input method.
but when I click on it, my only option displayed is greyed like
disabled. Thinking the focus was in my web browser, I pressed the
arrow down
and then I realized "Chinese Chewing" was set in the Ibus UI ! There
might be a little bug there in the UI which can be overcome with the
arrow
keys but it's not intuitive.

Thanks again for your help, guys ! You rock ! :-)
Reply all
Reply to author
Forward
0 new messages