LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1150|回复: 2

[已解决]ibus doesn't work

[复制链接]
发表于 2009-8-20 17:47:35 | 显示全部楼层 |阅读模式
I've reinstalled arch and haven't typed a single word of Chinese yet.

I don't want to go back to scim so I'm trying ibus.

I'm also trying out gnome. Kind of stupid huh. Anyway, I'm now using gnome as DE and have put this in ~/.xinitrc


  1. GTK_IM_MODULE=ibus
  2. QT_IM_MODULE=ibus
  3. #What is this??
  4. if [ -z "$IBUS_SESSION_ID" ]; then
  5.            export IBUS_SESSION_ID=`mktemp -u XXXXXXXX`
  6. fi
  7. if [ -n "${GTK_IM_MODULE}" ]; then
  8.            export GTK_IM_MODULE
  9. else
  10.            export GTK_IM_MODULE=xim
  11. fi
  12. if [ -n "${QT_IM_MODULE}" ]; then
  13.            export QT_IM_MODULE
  14. else
  15.            export QT_IM_MODULE=xim
  16. fi
  17. export     XMODIFIERS=@im=ibus
  18. ibus-daemon --xim -d &
  19. xbindkeys &
  20. xmodmap .Xmodmap &
  21. exec gnome-session
复制代码


Basically it's just the same as

  1. export     IBUS_SESSION_ID=`mktemp -u XXXXXXXX`
  2. export     GTK_IM_MODULE=ibus
  3. export     QT_IM_MODULEe=ibus
  4. export     XMODIFIERS=@im=ibus
  5. ibus-daemon --xim -d &

  6. xbindkeys &
  7. xmodmap .Xmodmap &
  8. exec gnome-session
复制代码


With ibus-setup the Shortcut for "enable or disable" is Ctrl+Space, but I can't bring it up, although the ibus icon did appear at the notify area.

My locale is "en_US.utf-8", is this a known bug with this locale or is it something about the .xinitrc file?

Jiong...
发表于 2009-8-20 18:09:39 | 显示全部楼层
export LC_CTYPE=zh_CN.UTF-8
export XMODIFIERS=@im=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus

ibus-daemon -d -x
----------------------
我用的是kde4。ibus跟en_US.utf8没关系吧,之前我也是用en_US,也能用的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-20 18:36:33 | 显示全部楼层
  1. #~/.xprofile
  2. export  IBUS_SESSION_ID=`mktemp -u XXXXXXXX`
  3. export  GTK_IM_MODULE=ibus
  4. export  QT_IM_MODULE=ibus
  5. export  XMODIFIERS=@im=ibus
  6. ibus-daemon --xim -d &
  7. xbindkeys &
  8. xmodmap .Xmodmap &
  9. exec gnome-session
复制代码

可以用了~
原来是gdm自作主张, 真是讨厌鬼, 居然完全不理会 ~/.xinitrc
cp ~/.xinitrc ~/.xprofile ; 重启X ; OK

界面比scim要舒服一些 呵呵
  1. # pacman -Rnsc gdm
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表