Bug 1734588 - Even when IMs are defined in dconf keyfile, IMs do not work without gnome-inital-setup with default shell '/bin/sh'
Summary: Even when IMs are defined in dconf keyfile, IMs do not work without gnome-ini...
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ibus
Version: 7.4
Hardware: Unspecified
OS: Linux
Target Milestone: rc
: ---
Assignee: fujiwara
QA Contact: QE Internationalization Bugs
Depends On:
TreeView+ depends on / blocked
Reported: 2019-07-31 00:59 UTC by Ding-Yi Chen
Modified: 2020-01-13 14:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description Ding-Yi Chen 2019-07-31 00:59:59 UTC
Description of problem:
Even when input methods are defined through system dconf keyfile,
input methods do not work without gnome-inital-setup if the default shell is '/bin/sh'

Imagine an input-method class setting, 
gnome-initial-setup is disabled and input methods are predefined.

This setting does not work for all users. 
To sum up, it works when default shell is '/bin/bash',
but failed when the default shell is  '/bin/sh'

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. su as root
2. disable gnome-initial-setup
3. Define input method in system dconf db:

   a. Edit /etc/dconf/db/local.d/04-inputsource with following content:

     sources=[('xkb','jp'), ('ibus','kkc')]

   b. Update system dconf db
      dconf update

4. create a test user that use /bin/sh

   useradd -m --shell /bin/sh testuser
5. Re-login as testuser through gdm

6. Open gnome-terminal or any gtk application with an input area.
7. Switch to ibus-kkc and start typing

Actual results:
Still type in english.

Expected results:
Can type Japanese

Additional info:

## Workarounds

1. Set the default shell to /bin/bash
2. Specify gtk-im-module in dconf keyfile, like append following at /etc/dconf/db/local.d/04-inputsource


Note You need to log in before you can comment on or make changes to this bug.