IBus im-switch file is broken

Bug #826306 reported by PCMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ibus (Ubuntu)
New
Undecided
Unassigned

Bug Description

After I use im-switch to set ibus as default input method, environment variables are not correctly set for it.
in /etc/X11/xinit/xinput.d/ibus, this command doesn't seem to work.
if [ -e /usr/lib/gtk-*.0/*/immodules/im-ibus.so ]; then
    GTK_IM_MODULE=ibus
fi

$GTK_IM_MODULE is always set to XIM and using XIM crashes several applications, one of which is Google Chrome.
I have both gtk2 and gtk3 ibus modules installed and the files are all in the right places.
Please check if the script really works. For me, it failed to set correct GTK_IM_MODULE.

This script has a potential problem. When only one of gtk2 or gtk3 module was installed, both gtk2 and gtk3 programs will try to load im module of ibus. However, only one of gtk2 and gtk3 has im module installed. This is a rare case, though.

Revision history for this message
Ikuya Awashiro (ikuya-fruitsbasket) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.