For full disclosure I should probably mention that we — unlike what's indicated above — won't set GTK_IM_MODULE in lunar. Soon after having submitted this bug report, my attention was called to this upstream g-s-d commit:
https://salsa.debian.org/gnome-team/gnome-settings- daemon/-/commit/27bc0889 With that in place, setting GTK_IM_MODULE in Ubuntu on Xorg sessions would be redundant. At the same time, the decision represented by that commit message confirms that setting it in jammy is motivated. As requested I added a "post-release" item to the test plan. The verification through the other test plan items has been accomplished successfully using im-config 0.50-2ubuntu22.04.1 from jammy-proposed. ** Description changed: [ 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. + 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 + 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. + 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 + the input sources * Switch to Intelligent Pinyin * Find that you instantly can input Chinese + + Post-release: + + After the new version has been moved to jammy-updates and propagated, be + attentive to the crash stats at errors.ubuntu.com. If a significant + increase of crashes happens, which can be assumed to be related to this + change, a reversal should be considered. [ 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) + 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. + kinetic, won't encounter a problem. ** Tags removed: verification-needed verification-needed-jammy ** Tags added: verification-done verification-done-jammy -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to im-config in Ubuntu. https://bugs.launchpad.net/bugs/2007379 Title: Set GTK_IM_MODULE in Ubuntu on Xorg sessions Status in im-config package in Ubuntu: Fix Released Status in im-config source package in Jammy: Fix Committed Status in im-config source package in Kinetic: Won't Fix Status in im-config package in Debian: Fix Released Bug description: [ 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 Post-release: After the new version has been moved to jammy-updates and propagated, be attentive to the crash stats at errors.ubuntu.com. If a significant increase of crashes happens, which can be assumed to be related to this change, a reversal should be considered. [ 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/2007379/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

