Comment 0 for bug 2007379

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

[ Impact ]

gnome-settings-daemon underwent a code refactoring before the release of version 42 as regards the IBus integration on x11. Initially there was the striking bug #1969637, but also with that one fixed, an issue due to the refactoring remains. These steps illustrate the problem:

* Prepare an Ubuntu desktop so it has only non-IBus items in the list
  of input sources, while the ibus-libpinyin package is installed.
* Log in to an Ubuntu on Xorg session
* Go to Settings -> Keyboard and add Chinese (Intelligent Pinyin) to
  the input sources
* Switch to Intelligent Pinyin
* Find that you only can input latin letters
* Log out and log in again
* Find that you now can input Chinese as expected

The need for the last relogin is an inconvenience and a regression compared to how it worked before gnome-settings-daemon 42.

The proposed upload makes im-config set the GTK_IM_MODULE variable to 'ibus' for Ubuntu on Xorg sessions, which makes it work as smoothly as it did previously.

[ Test Plan ]

* Prepare an Ubuntu desktop so it has only non-IBus items in the list
  of input sources, while the ibus-libpinyin package is installed.
* Install im-config from jammy-proposed
* Reboot and log in to an Ubuntu on Xorg session
* Go to Settings -> Keyboard and add Chinese (Intelligent Pinyin) to
  the input sources
* Switch to Intelligent Pinyin
* Find that you instantly can input Chinese

[ Where problems could occur ]

This means that we — again — make im-config interfere with the IM configuration on GNOME desktops. Via bug #1893551 we kind of did the opposite in order to reduce the frequency of ibus crashes. But the situation now is different:

- This is more narrow-scoped and limited to x11
- The upstream GNOME code has undergone significant changes
- The measure is greenlighted by the upstream IBus maintainer (I think
  Fedora does it too)

But with that said, I'm going to be attentive to the frequency of ibus crashes going forward.

[ Other Info ]

I prefer to skip kinetic for these reasons:
- Not so much time left before EOL
- Low importance
- A jammy user with an IBus IM already set up, and who upgrades to
  kinetic, won't encounter a problem.