Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: BALLOON a.k.a. Fu-sen. on January 30, 2014, 08:05:13 PM

Title: "gtk.immodules" of TCL5 does not work
Post by: BALLOON a.k.a. Fu-sen. on January 30, 2014, 08:05:13 PM
I perform Japanese translation in TCL of the new version(5.2).
Some Japanese indication succeeds.

(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=16577.0;attach=4034)

I cannot perform Japanese indication by application of GTK.
After checking it in detail, I noticed that there were only "Simple" and "None" in Input Methods of GTK.

(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=16577.0;attach=4035)

Some methods are displayed with version 4 here.
Movement of "gtk.immodules" seems to change with version 5.

Please give me what to do, support to operate "gtk.immodules" normally.
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: bmarkus on January 31, 2014, 12:45:33 AM
Gtk2 or Gtk3?
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: BALLOON a.k.a. Fu-sen. on January 31, 2014, 05:56:55 AM
A problem occurrence in Gtk 2.
Possibly, in TCL5, is Gtk 3 set with precedence?
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: Juanito on January 31, 2014, 06:10:28 AM
do you have both gtk2 and gtk3 loaded? If so, this might produce unexpected results
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: BALLOON a.k.a. Fu-sen. on January 31, 2014, 06:44:13 AM
No. It is only GTK2 to call in a package.
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: Juanito on January 31, 2014, 09:55:02 AM
does running this command help:
Code: [Select]
# gtk-query-immodules-2.0 > /usr/local/etc/gtk-2.0/gtk.immodules
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: BALLOON a.k.a. Fu-sen. on January 31, 2014, 07:24:45 PM
does running this command help:
Code: [Select]
# gtk-query-immodules-2.0 > /usr/local/etc/gtk-2.0/gtk.immodules
In GTK2, this was carried out conventionally.
Input Method carried this out and did not work normally so far.

I discovered what these specifications changed from GTK 2.24.20:
Code: [Select]
# gtk-query-immodules-2.0 --update-cacheIt is necessary to carry it out in root authority definitely:
Code: [Select]
# sudo gtk-query-immodules-2.0 --update-cacheThe latest update of gtk2.tcz just fulfills this. (2013/07/12 Updated to 2.24.20)

I in this way solved this problem.
Input Method(example: fcitx) adds that I am careful about changing it,
and giving this response and promotes it.

The detailed information will be provided in follows:
https://fcitx-im.org/wiki/Input_method_related_environment_variables
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: Juanito on February 01, 2014, 12:27:48 AM
Please note that:

# = this command is run as root

$ = this command is run as user

To be sure I've understood, are you saying that both these commands need to be run (as root):
Code: [Select]
# gtk-query-immodules-2.0 > /usr/local/etc/gtk-2.0/gtk.immodules
# gtk-query-immodules-2.0 --update-cache
..before things work for you?
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: BALLOON a.k.a. Fu-sen. on February 01, 2014, 02:04:04 AM
This should be carried out in run as user by a package.
There are already the results by others by Japanese production about this neighborhood,
and I only update it. I do not do the unnecessary thing.
Title: Re: "gtk.immodules" of TCL5 does not work
Post by: Juanito on February 01, 2014, 04:10:27 AM
"gtk-query-immodules-2.0 --update-cache" added to gtk2 start-up script.

I'm not sure if you're using another extension or application, but I presume this command will need to be re-issued if your extension/application is loaded after gtk2