Japenese input method available (and sometimes selected?) by default on Hirsute images

Bug #1919455 reported by Iain Lane
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
High
Gunnar Hjalmarsson
mozc (Ubuntu)
Opinion
Undecided
Unassigned

Bug Description

I just tried with today's daily, which is the first ISO image that contains ibus-mozc 2.26.4220.100+dfsg-4ubuntu2.

I noticed that an 'A' was displaying next to the input indicator (the 'A' seems like a bug in itself!). Clicking that showed me that this is because Japanese was selected. It's possible though that I hit something which switched input language. Picture attached.

Japanese shouldn't be available for everyone by default; I think there's a bug in the new mozc which means that it is. I checked with the previous ISO (20210316) that has the old mozc and this bug isn't present there.

Gunnar, if you're seeing this, any chance you can help us look into this bug please?

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

Yep, all Ubuntu users are expected to input Japanese from now on. :)

More seriously, I have not seen it yet, but it's most likely caused by the fix of <https://bugs.debian.org/983623>. They have added an autostart script in order to make ibus-mozc available out of the box at first login in case of a Japanese install of GNOME.

I thought it wouldn't affect us adversely. We don't use tasksel, and handle those things via a gnome-settings-daemon patch. But apparently I overlooked Ubuntu's live session in combination with ibus-mozc being shipped on the ISO.

I'll fix it somehow. Hopefully in a way that won't cause an Ubuntu/Debian delta.

Changed in mozc (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Iain Lane (laney) wrote : Re: [Bug 1919455] Re: Japenese input method available (and sometimes selected?) by default on Hirsute images

On Wed, Mar 17, 2021 at 01:13:11PM -0000, Gunnar Hjalmarsson wrote:
> Yep, all Ubuntu users are expected to input Japanese from now on. :)
>
> More seriously, I have not seen it yet, but it's most likely caused by
> the fix of <https://bugs.debian.org/983623>. They have added an
> autostart script in order to make ibus-mozc available out of the box at
> first login in case of a Japanese install of GNOME.
>
> I thought it wouldn't affect us adversely. We don't use tasksel, and
> handle those things via a gnome-settings-daemon patch. But apparently I
> overlooked Ubuntu's live session in combination with ibus-mozc being
> shipped on the ISO.
>
> I'll fix it somehow. Hopefully in a way that won't cause an
> Ubuntu/Debian delta.

Thanks! That fix sounds likely, if just starting ibus-mozc is enough to
get it made available and it doesn't inspect the settings on the system.

I don't know if this is appropriate (if it wouldn't break input for
people who do want to type Japanese) or if mozc should be fixed to look
at the settings or something, but I just want to point out that we can
disable particular autostart services in the live session by shipping
hooks in the casper package. There are a few examples in there already
if you grep for "autostart".

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

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

On 2021-03-17 16:07, Iain Lane wrote:
> Thanks! That fix sounds likely, if just starting ibus-mozc is enough to
> get it made available and it doesn't inspect the settings on the system.

Well, it does inspect the settings. If you would run a Chinese live session, you wouldn't see ibus-mozc since there is already another IBus IM enabled. But if there is no IBus IM, and ibus-mozc is installed (which it always is in the live session), then it gets auto enabled.

The underlying assumption is that if you install ibus-mozc you want to use it. But that assumption doesn't take Ubuntu's ISO into account.

> I don't know if this is appropriate (if it wouldn't break input for
> people who do want to type Japanese) or if mozc should be fixed to look
> at the settings or something, but I just want to point out that we can
> disable particular autostart services in the live session by shipping
> hooks in the casper package. There are a few examples in there already
> if you grep for "autostart".

Thanks for the tip, will have a look. If that can be done without disabling the gnome-settings-daemon mechanism for adding input methods (which I suppose it can), it wouldn't break anything in case of a Japanese live session.

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

The casper route looks right to me, and I submitted a merge proposal. Added a script using 52gnome_initial_setup as a template.

Any chance you can sponsor?

Changed in casper (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → High
status: New → In Progress
Changed in mozc (Ubuntu):
assignee: Gunnar Hjalmarsson (gunnarhj) → nobody
importance: High → Undecided
status: In Progress → Invalid
tags: added: rls-hh-incoming
Changed in mozc (Ubuntu):
status: Invalid → Opinion
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Proposed fix merged and uploaded by Iain Lane.

Changed in casper (Ubuntu):
status: In Progress → Fix Committed
tags: removed: rls-hh-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package casper - 1.461

---------------
casper (1.461) hirsute; urgency=medium

  [ Gunnar Hjalmarsson ]
  * scripts/casper-bottom/59disable_mozc_autosetup:
    - Don't set up ibus-mozc automatically in non-Japanese sessions
      (LP: #1919455)

  [ Iain Lane ]
  * Add a gbp.conf so --git-tag{,-only} works

 -- Gunnar Hjalmarsson <email address hidden> Mon, 22 Mar 2021 12:21:02 +0000

Changed in casper (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Follow-up
---------
Played with today's daily ISO and confirmed that
- ibus-mozc is not enabled in an English live session
- ibus-mozc is enabled in a Japanese live session
- the mozc packages are removed when completing an English install

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.