glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps if IBus is turned on
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glib2.0 (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
ibus (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
snapd (Ubuntu) |
Fix Released
|
High
|
James Henstridge |
Bug Description
Test Case
---------
From Ubuntu 23.04, install glib >= 2.75.3-3
Test 1:
Log out
Click your name on the login screen.
Click the gear button to choose Ubuntu on Xorg
Enter your password to finish logging in.
Open Firefox (or Chromium)
Try to enter text in the address bar.
Test 2:
Install the ibus-libpinyin package.
Log out and log in again.
Go to Settings -> Keyboard and add "Chinese (Intelligent Pinyin)"
to your input sources.
Log out
Click your name on the login screen.
Click the gear button to choose Ubuntu (on Wayland).
Enter your password to finish logging in.
Open Firefox (or Chromium)
Try to enter text in the address bar.
What Happens
------------
No text is inputted
Other Info
----------
You see the issue as soon as IBus has been 'turned on'. With the current g-s-d version you need to somehow trigger a need to turn IBus on. In an X11 session IBus is always turned on due to im-config 0.55-1. In a Wayland session you need to tell it to turn IBus on by either adding an IBus input method to your input sources or make use of the Screen Keyboard feature.
And I've only seen the issue with the Firefox and Chromium snaps.
Warning message if you start firefox from terminal:
[Parent 3792, Main Thread] WARNING: Unable to connect to ibus: Could not connect: Permission denied: 'glib warning', file /build/
(firefox:3792): IBUS-WARNING **: 15:23:11.814: Unable to connect to ibus: Could not connect: Permission denied
gnome-settings-
-------
gnome-settings-
Before I did that, I tested disabling our patches but it didn't make a difference.
description: | updated |
summary: |
- xsettings ibus commit broke text input for Firefox & Chromium snaps + glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps |
no longer affects: | gnome-settings-daemon (Ubuntu) |
Changed in glib2.0 (Ubuntu): | |
importance: | Undecided → High |
tags: | added: rls-ll-incoming |
description: | updated |
description: | updated |
summary: |
- glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps + glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps on Xorg |
description: | updated |
summary: |
- glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps on Xorg + glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps |
summary: |
- glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps + glib2.0 2.75.3-3 breaks text input for Firefox & Chromium snaps if IBus + is turned on |
Changed in snapd (Ubuntu): | |
assignee: | nobody → James Henstridge (jamesh) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in glib2.0 (Ubuntu): | |
status: | New → Invalid |
Changed in snapd (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ibus (Ubuntu): | |
status: | New → Invalid |
importance: | Undecided → High |
Wow.. This is "interesting". Compare this with bug #2007379, where we work around the problem which the now reversed upstream g-s-d commit tries to address. (I wasn't aware of this upstream move.)
im-config 0.55-1 is already in lunar-release. Can the fact that im-config now sets GTK_IM_MODULE=ibus be the reason why the upstream commit didn't work out well? Would that g-s-d commit possibly work for us with GTK_IM_MODULE unset? I think this is worth to investigate.
At least the g-s-d commit is the right idea.
As regards the recent im-config change, I suppose it's motivated in both jammy and Debian 12. (And also in lunar unless we figure out how to avoid the regression you describe in this bug.)