IBus 1.5.26 does not enable on Xorg sesson

Bug #1968459 reported by Ikuya Awashiro
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ibus
Fix Released
Unknown
ibus (Debian)
Fix Released
Unknown
ibus (Ubuntu)
Fix Released
High
Gunnar Hjalmarsson

Bug Description

I tested newly installed Ubuntu 22.04 LTS dev.

step to reproduce:
1. boot
2. select user
3. session changes to Ubuntu on Xorg from Ubuntu
4. enter password
5. run gedit
6. put Hankaku/Zenkaku key
7. nothing to happen

consideration:
Run "ps ax |grep ibus" on terminal:
$ ps ax |grep ibus
   5774 ? Ss 0:00 sh -c /usr/bin/ibus-daemon --panel disable $([[ $XDG_SESSION_TYPE == "x11" ]] && echo "--xim")
   5779 ? Sl 0:00 /usr/bin/ibus-daemon --panel disable
   5863 ? Sl 0:00 /usr/libexec/ibus-dconf
   5864 ? Sl 0:00 /usr/libexec/ibus-extension-gtk3
   5868 ? Sl 0:00 /usr/libexec/ibus-portal
   5965 ? Sl 0:00 /usr/lib/ibus-mozc/ibus-engine-mozc --ibus
   6831 pts/1 R+ 0:00 grep --color=auto ibus
It is strange.

IBus 1.5.25 introduces systemd user unit files.
/usr/lib/systemd/user/org.freedesktop.IBus.session.GNOME.service
/usr/lib/systemd/user/org.freedesktop.IBus.session.generic.service
above contains "ExecStart=sh -c '/usr/bin/ibus-daemon --panel disable $([[ $XDG_SESSION_TYPE == "x11" ]] && echo "--xim")"
https://github.com/ibus/ibus/blob/master/bus/services/org.freedesktop.IBus.session.GNOME.service.in#L21
It may be bashism.
I changed to "ExecStart=bash -c '/usr/bin/ibus-daemon --panel disable $([[ $XDG_SESSION_TYPE == "x11" ]] && echo "--xim")" and reboot then works as expected.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ibus (Ubuntu):
status: New → Confirmed
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :
Changed in ibus:
status: Unknown → New
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for your report and the proposed solution. Fix is on its way, in unstable to start with:

https://tracker.debian.org/news/1317558/accepted-ibus-1526-4-source-into-unstable/

Changed in ibus (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ibus - 1.5.26-4

---------------
ibus (1.5.26-4) unstable; urgency=medium

  * Team upload
  * d/p/src-services_Fix-bashisms-in-org.freedesktop.IBus.session.patch:
    - Cherry picked upstream PR from Mitsuya Shibata (closes: #1009256,
      LP: #1968459).

 -- Gunnar Hjalmarsson <email address hidden> Sun, 10 Apr 2022 14:16:37 +0200

Changed in ibus (Ubuntu):
status: In Progress → Fix Released
Changed in ibus (Debian):
status: Unknown → Fix Released
Changed in ibus:
status: New → Fix Released
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.