[Uim] [Docs] GTK-immodule not working

Martin Swift martin at swift.is
Sun Dec 31 02:08:45 PST 2006


Hi YamaKen,

Thanks for your reply.

On Sun, Dec 31, 2006 at 07:29:31AM +0900, YAMAMOTO Kengo / YamaKen wrote:
> 1) Run following commands
> 
>   $ gtk-query-immodules-2.0 >/tmp/gtk.immodules.current
>   $ diff -u /tmp/gtk.immodules.tmp `pkg-config --variable=prefix gtk+-2.0`/etc/gtk-2.0/gtk.immodules >/tmp/gtk.immodules.diff
> 

The output of 'pkg-config --variable=prefix gtk+-2.0' is '/usr', but
surely there shouldn't be anything at
  /usr/etc/gtk-2.0/gtk.immodules
right?

Using

  $ diff -u /tmp/gtk.immodules.current $(locate gtk.immodules | grep
gtk-2.0) > /tmp/gtk.immodules.diff

I got the attached diff.

> 2) Send us following files and information
> 
>   - /tmp/gtk.immodules.current
>   - /tmp/gtk.immodules.diff

attached

>   - Your OS distribution and version

Gentoo 2006.1

> I know that the gtk.immodules location varies by distros and so
> above step may not work on some environments. Is anyone know a
> good way to guess sysconfdir for GTK+?

How do you like my $(locate gtk.immodules | grep gtk-2.0)?

First I tried a simple 'locate', but found that there was a
gtk-immodules in '/'(!?).

-rw-r--r-- 1 root root 1641 2006-12-04 01:37 /etc/gtk-2.0/gtk.immodules
-rw-r--r-- 1 root root 1726 2006-10-20 11:25 /gtk.immodules

I reckon the latter is an copy I must have made at some stage trying
to figure this out. Anyway...

> And following procedure may work for such problems although of
> course not a true resolution.
> 
> 1) Remove all uim-related packages
> 
> 2) Reboot the OS
> 
> 3) Reinstall uim-related packages again
> 
> Since desktop IM environment may involve settings that effects
> on X startup, rebooting the OS is an important step to deal with
> such problems.

A couple of questions:

 * What are "uim-related" packages? Just uim + dictionaries, or also
   gtk+ and/or Qt?
 * Why would rebooting be necessary? If the X settings are all that
   need to be reset, wouldn't restarting X be enough?

Happy New Year,
Martin

-- 
\u270C



More information about the uim mailing list