[SCIM] Making Scim run automatically

Jun Chen prescaler at gmail.com
Mon Jul 26 18:16:30 PDT 2004


I have a similar situation. I can use scim gtk module in gtk
applications. If I select X input method, it will give me this message
in the console:

Gtk-WARNING **: Loading IM context type 'xim' failed

Also I can not use scim in any non-gtk application.

Here is my environment:

% scim -l
Smart Common Input Method 0.99.2

Available FrontEnd module:
    socket
    x11

Available Config module:
    gconf
    simple
    socket
    dummy

Available IMEngine module:
    pinyin
    rawcode
    socket
    table

I have following environment variables:

XMODIFIERS=@im=SCIM
XIM=SCIM
XIM_PROGRAM=scim

% locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

On Mon, 26 Jul 2004 18:26:46 -0500, Ming Hua <minghua at rice.edu> wrote:
> On Tue, Jul 27, 2004 at 07:01:04AM +0800, Gilles Vigner wrote:
> > Hi,
> >
> > I have add the three following lines
> > /usr/bin/scim &
> > export XMODIFIERS="@im=SCIM"
> > export GTK_IM_MODULE=scim
> > in my /etc/X11/xinit/xinitrc file like this:
> >
> > gilles at debian:~$ cat /etc/X11/xinit/xinitrc
> > #!/bin/sh
> >
> > # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
> >
> > # /etc/X11/xinit/xinitrc
> > #
> > # global xinitrc file, used by all X sessions started by xinit (startx)
> 
> So did you start your X session by typing ``startx'' in a terminal or
> use some display manager like gdm or kdm?
> 
> > /usr/bin/scim &
> > export XMODIFIERS="@im=SCIM"
> > export GTK_IM_MODULE=scim
> >
> > # invoke global X session script
> >  /etc/X11/Xsession
> > gilles at debian:~$
> >
> > but it still doesn't work.
> > I'd like scim to run for any user in any desktop (kde,
> > gnome...), what's wrong in what i did ?
> 
> I never figured out how exactly Debian deal with the various X startup
> init scripts.  But to see whether your change works is simple.  Just
> open a X terminal on your desktop, use the command:
>    $ echo $XMODIFIERS
>    $ echo $GTK_IM_MODULE
> to check.  Also, what is your locale in X (use command ``$ locale'' to
> check)?
> 
> > Gilles
> 
> Hope this helps,
> Ming
> 2004.07.26
> 
> --------------------------------------------------------------------------
> We used to think that if we know one, we know two, because one and one are
> two.  We are finding that we must learn a great deal more about ``and''.
>                                                  --- Sir Arthur Eddington
> --------------------------------------------------------------------------
> 
> 
> _______________________________________________
> scim mailing list
> scim at freedesktop.org
> http://freedesktop.org/mailman/listinfo/scim
>


More information about the scim mailing list