#1021434 gnome-initial-setup: No current input method settings (ibus-mozc) in list (then default choise deletes current sources)

Package:
gnome-initial-setup
Source:
gnome-initial-setup
Description:
Initial GNOME system setup helper
Submitter:
Hideki Yamane
Date:
2023-03-05 18:57:09 UTC
Severity:
normal
Tags:
#1021434#5
Date:
2022-10-08 13:23:26 UTC
From:
To:
Dear Maintainer,

 After upgrading packages, gnome-initial-setup windows popped up
 and I chose default choise "日本語", then I cannot input Japanese
 with ibus since ibus indicator was disappeared on my desktop and
 could not kick it.

 With investigation, I've found that ~/.config/dconf/user data was
 changed.

$ dconf dump /org/gnome/desktop/input-sources/

[/]
dmru-sources=[('ibus', 'mozc-jp'), ('xkb', 'jp')]
sources=[('ibus', 'mozc-jp'), ('xkb', 'jp')]
xkb-options=['lv3:ralt_switch']

 was changed to

[/]
dmru-sources=[('xkb', 'jp')]
sources=[('xkb', 'jp')]
xkb-options=['lv3:ralt_switch']

 sources=[('ibus', 'mozc-jp')] was disappeared. I've manually put it
 via dconf and it works again.


 So, why there is no input method source as ibus-mozc on gnome-initial-setup?

#1021434#10
Date:
2023-03-05 18:56:12 UTC
From:
To:
Control: tags -1 + moreinfo

I don't really know how Japanese input methods work, but I think this
could have been a combination of #1032382 (see
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032382#133>)
and #1029821 (see
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029821#18>).

On a test VM with en_GB.UTF-8 and ja_JP.UTF-8 locales, after upgrading
libgnome-desktop-4-2 to 43.2-2 to fix #1032382, and also upgrading
gnome-initial-setup to 43.2-3 to fix #1029821, I can run

    /usr/libexec/gnome-initial-setup --existing-user

and select Japanese followed by Next.

In the next page, if I have ibus-mozc installed, I get Japanese (Mozc)
as the default.

If I have ibus-anthy but not ibus-mozc, I get Japanese (Anthy) as the
default instead.

I can't read Japanese, but if I run it as

    LANG=ja_JP.UTF-8 LANGUAGE=ja_JP /usr/libexec/gnome-initial-setup --existing-user

I get one language option which looks like "日本語" in the default
list, and then in the next page, the default is either
"日本語 (Mozc)" or "日本語 (Anthy)", depending on whether I have
ibus-mozc installed or not. I think that means the right things are
now happening?

    smcv