Join GitHub today
GTK2 application can't use input method #7
all applications use gtk2 can't use fcitx or ibus.
currently i use a small hack to use input method:
to .bashrc or .zshrc
run application from terminal
if i add
to .xprofile, i can't login to unity at all.
I found after reboot that if I set this variable GTK_IM_MODULE_FILE nautilus and gnome-terminal and gedit (and such gnome applications) start with segmentation fault.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Unfortunately, this is a problem in Arch Linux and they don't seem to care :(
EDIT: I am wrong. It works with Arch Linux's gtk2 on my desktop.
EDIT2: Found the issue!
Index: gtk+2.0-2.22.0/gtk/gtkrc.c =================================================================== --- gtk+2.0-2.22.0.orig/gtk/gtkrc.c 2010-09-23 05:00:37.000000000 +0200 +++ gtk+2.0-2.22.0/gtk/gtkrc.c 2010-09-23 20:29:35.145600147 +0200 @@ -450,7 +450,7 @@ if (im_module_file) result = g_strdup (im_module_file); else - result = g_build_filename (GTK_SYSCONFDIR, "gtk-2.0", "gtk.immodules", NULL); + result = g_build_filename (GTK_LIBDIR, "gtk-2.0", GTK_BINARY_VERSION, "gtk.immodules", NULL); } return result;
Essentially, that changes the gtk.immodules path from
EDIT 3: Pushed update. I've just tested - it's working now :D