[Pkg-ime-devel] Bug#645729: Bug#645729: Bug#645729: checking for ibus support in gtk2 and gtk3 separately

Aron Xu aron at debian.org
Sun Oct 23 13:52:56 UTC 2011


On Sun, Oct 23, 2011 at 21:24, Osamu Aoki <osamu at debian.org> wrote:
> Hi,
>
> On Mon, Oct 17, 2011 at 11:46:54PM -0700, Steve Langasek wrote:
>
>> If only one of ibus-gtk or ibus-gtk3 is installed, I don't know what the
>> desired behavior would be here, but I think we should fall back to xim in
>> that case because it's safer.
>
> This is very deep question.
>
> But practically thinking, control file needs update to fix this problem:
>
> Now we have:
> Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
>  python-ibus (= ${source:Version}), python-xdg, librsvg2-common, python-notify, im-config
> Recommends: ibus-gtk | ibus-qt4 | ibus-clutter
> Conflicts: ibus-anthy (<< 1.2),
>  ibus-table (<< 1.2),
>  ibus-pinyin (<< 1.2.99),
>  ibus-m17n (<< 1.2.99),
>  ibus-hangul (<< 1.2.99),
>  ibus-chewing (<< 1.2.99)
>
> I think correct thing to do is:
> Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
>  python-ibus (= ${source:Version}), python-xdg, librsvg2-common, python-notify
> Recommends: ibus-gtk3, ibus-gtk, ibus-qt4, ibus-clutter, im-config
> Conflicts: ibus-anthy (<< 1.2),
>  ibus-table (<< 1.2),
>  ibus-pinyin (<< 1.2.99),
>  ibus-m17n (<< 1.2.99),
>  ibus-hangul (<< 1.2.99),
>  ibus-chewing (<< 1.2.99)
>
> So they all get installed as defualt, if admin choses not to do so, he should
> deal with it.  im-config has option to force using xim as default too.

We tried to workaround it in Fcitx by recommending GTK2 IM Module in
the GTK3 package, and do the inverse in the GTK2 package. In this
case, users are very probably getting both IM Modules installed at the
same time, so they can avoid weird misbehavior of installing only one
of the two.

To answer your question ultimately, we need to have two things fixed in GTK3:
1.Add a GTK3_IM_MODULE variable.
2.Better fallback handling when GTK_IM_MODULE is set but the the
specified IM Module does not work or isn't present. It is expected to
fallback to XIM when this happens, but currently the fallback does not
work at all.


--
Regards,
Aron Xu





More information about the Pkg-ime-devel mailing list