From ArchWiki
Revision as of 15:34, 9 August 2011 by Lijpbasin (talk | contribs) ('ibus-daemon -d' does not work with libreoffice writer)
Jump to: navigation, search

This wiki is great, but was insufficient in my case:

Fresh install: (uname -a) Linux portable-schrek 2.6.38-ARCH #1 SMP PREEMPT Tue Jun 7 06:40:04 UTC 2011 i686 Intel(R) Pentium(R) M processor 1400MHz GenuineIntel GNU/Linux

XFCE 4.8.0

(pacman -Q ibus) ibus 1.3.9-3

and no gnome at all installed (nor gdm, I use slim instead).

All that was written didn't do it. I had to find an obscure comment from a user in a bug tracker somewhere to understand environment variables were missing. I found trace of this nowhere else, so I post here my ~/.bashrc as it is now (with Ibus working):

[matthieu@portable ~]$ cat ~/.bashrc

# Check for an interactive session
[ -z "$PS1" ] && return

alias ls='ls --color=auto'
alias ll='ls -lFh --color=auto'
alias emacs='mg'
PS1='[\u@\h \W]\$ '
export GDM_LANG=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LC_ALL=fr_FR.UTF-8
export LANGUAGE=fr_FR.UTF-8
export LC_CTYPE=fr_FR.UTF-8
export XMODIFIERS="@im=ibus" 
export XIM=ibus export XIM_ARGS="-d" 
export DEPENDS="ibus" 
export XIM_PROGRAM=/usr/bin/ibus-daemon 
export GTK_IM_MODULE=ibus 
export QT_IM_MODULE=ibus 

#export XMODIFIERS="@im=ibus"
#export GTK_IM_MODULE=ibus
#export QT_IM_MODULE=ibus
export GTK_IM_MODULE_FILE=~/.immodules

I Hope it helps... Have a nice day!

'ibus-daemon -d' does not work with libreoffice writer

[jpli@balance ~]$ uname -a

Linux balance 3.0-ARCH #1 SMP PREEMPT Sat Aug 6 16:18:35 CEST 2011 x86_64 AMD Phenom(tm) 9150e Quad-Core Processor AuthenticAMD GNU/Linux

I chose fvwm and slim as my window manager and display manager, no specific desktop environment installed.

My ibus "suite", no other input method installed:

[jpli@balance ~]$ pacman -Qs ibus

local/ibus 1.3.9-3
    Next Generation Input Bus for Linux.
local/ibus-pinyin 1.3.11-2
    The PinYin Engine for IBus Input Framework.
local/ibus-sunpinyin 2.0.3-1
    The SunPinYin Engine for IBus Input Framework. SunPinYin is a Statistical Language Model based pinyin IME by Sun.

I setup ibus in ~/.xinitrc, thought I need not use the extra "--xim" option: [jpli@balance ~]$ cat ~/.xinitrc

# ~/.xinitrc
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  unset f

export GTK_IM_MODULE_FILE=/etc/gtk-2.0/gtk.immodules
ibus-daemon -d

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec ck-launch-session fvwm

In ~/.bashrc:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus

Then I found out no Chinese input method can be brought up with Ctrl + space in libreoffice writer When I killed all the ibus processes and restarted ibus using "ibus-daemon --xim -d", the problem was solved.

I suggest to add this "--xim option issue" to wiki once it gets conformed