Bug 2237495

Summary: Cannot run im-chooser from the command line (Tried in Plasma Wayland and XFCE)
Product: [Fedora] Fedora Reporter: Mike FABIAN <mfabian>
Component: im-chooserAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: awilliam, i18n-bugs, mfabian, tagoh
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard: AcceptedFreezeException
Fixed In Version: im-chooser-1.7.4-8.fc40 im-chooser-1.7.4-8.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-07 22:59:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2143445    
Attachments:
Description Flags
Screenshot showing the error dialog box of im-chooser
none
Selecting "Settings -> Input Method Selector” form the XFCE menu shows a similar error dialog none

Description Mike FABIAN 2023-09-05 18:09:18 UTC
- Installed Fedora-Everything-netinst-x86_64-39-20230903.n.0.iso in qemu-kvm:

nice -n 19 ionice -c 3 qemu-kvm -machine pc-q35-6.2 -cpu host -enable-kvm -m 4G -smp 2 -drive file=./Fedora-Everything-netinst-x86_64-39-20230903.n.0.iso.qcow2,index=0,media=disk,cache=unsafe -rtc base=localtime -serial file:/tmp/qemu-Fedora-Everything-netinst-x86_64-39-20230903.n.0.iso.qcow2-output.log -name Fedora-Everything-netinst-x86_64-39-20230903.n.0.iso.qcow2 -cdrom ./Fedora-Everything-netinst-x86_64-39-20230903.n.0.iso -boot c -nic user,model=e1000,ipv4=on,ipv6=off,dnssearch=redhat.com,dns=10.38.5.26,hostname=Fedora-Everything-netinst-x86_64-39-20230903.n.0.iso.qcow2,hostfwd=tcp::5558-:22 -spice port=6002,disable-ticketing=on,streaming-video=off -vga virtio -display vnc=:6 -monitor stdio -usb -device usb-mouse -device adlib -device sb16 -device ES1370 -device gus -device intel-hda -device hda-duplex -device cs4231a -device AC9

- After the installation I also installed the KDE desktop environment and the XFCE desktop environment.

- I then made sure that the system was fully up-to-date:

    sudo dnf --enablerepo=updates-testing update -y

- According to the instructions in

    https://fedoraproject.org/wiki/QA:Testcase_i18n_input_method_setup

I installed all of im-chooser* and imsettings*

[mfabian@fedora ~]$ sudo dnf install  imsettings* im-chooser* 
[sudo] password for mfabian: 
Last metadata expiration check: 0:22:57 ago on Wed 06 Sep 2023 02:40:39 AM JST.
Package imsettings-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-cinnamon-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-devel-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-gsettings-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-libs-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-lxde-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-mate-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-plasma-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-qt-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-xfce-1.8.4-1.fc39.x86_64 is already installed.
Package imsettings-xim-1.8.4-1.fc39.x86_64 is already installed.
Package im-chooser-1.7.4-7.fc39.x86_64 is already installed.
Package im-chooser-common-1.7.4-7.fc39.x86_64 is already installed.
Package im-chooser-xfce-1.7.4-7.fc39.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[mfabian@fedora ~]$ 

- Rebooted.

- logged into XFCE again.

- ibus related environment variables were not set:

    [mfabian@fedora ~]$ env | grep ibus
    [mfabian@fedora ~]$ 

- I tried to run im-chooser from the command line.

  A dialog window pops up with the message:

        Unrecoverable error

      Unable to communicate to IMSettings service: unknown reason

      Please check /home/mfabian/.cache/imsettings/log for more details

- I check this log but I don’t understand it. Here is the log:

    [mfabian@fedora ~]$ cat .cache/imsettings/log
    [        23.088441]: GLib-GIO[1790]: DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
    [        23.091224]: GLib-GIO[1790]: DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
    
    [        23.114725]: IMSettings-LXDE backend[1790]: WARNING **: Unable to load the lxde configuration file.
    
    [        23.114989]: IMSettings-XIM backend[1790]: WARNING **: imsettings-xim XIM server isn't running.
    
    [        23.133135]: IMSettings-Qt backend[1790]: WARNING **: Unable to obtain the DefaultInputMethod: Key file does not have group “Qt”
    
    [        23.144556]: IMSettings-LXDE backend[1790]: WARNING **: Unable to load the lxde configuration file.
    
    [        23.144727]: IMSettings-XIM backend[1790]: WARNING **: imsettings-xim XIM server isn't running.
    
    [        23.144851]: IMSettings-Qt backend[1790]: WARNING **: Unable to obtain the DefaultInputMethod: Key file does not have group “Qt”
    imsettings information
    ==========================
    XINPUTRC: /etc/X11/xinit/xinput.d//none.conf
    	  File: /etc/X11/xinit/xinput.d//none.conf
    	  Size: 110       	Blocks: 8          IO Block: 4096   regular file
    	Device: 0,33	Inode: 227911      Links: 1
    	Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
    	Context: system_u:object_r:bin_t:s0
    	Access: 2023-09-05 21:31:44.949966399 +0900
    	Modify: 2023-08-22 09:00:00.000000000 +0900
    	Change: 2023-09-05 21:12:57.956316167 +0900
    	 Birth: 2023-09-05 21:12:57.788315181 +0900
    Is DBus enabled: yes
    Is imsettings enabled: yes
    Is GTK+ supported: 
    [        23.202202]: IMSettings-LXDE backend[1790]: WARNING **: Unable to load the lxde configuration file.
    
    [        23.202734]: IMSettings-XIM backend[1790]: WARNING **: imsettings-xim XIM server isn't running.
    
    [        23.202989]: IMSettings-Qt backend[1790]: WARNING **: Unable to obtain the DefaultInputMethod: Key file does not have group “Qt”
    
    [        23.215623]: IMSettings-LXDE backend[1790]: WARNING **: Unable to load the lxde configuration file.
    
    [        23.215840]: IMSettings-XIM backend[1790]: WARNING **: imsettings-xim XIM server isn't running.
    
    [        23.216030]: IMSettings-Qt backend[1790]: WARNING **: Unable to obtain the DefaultInputMethod: Key file does not have group “Qt”
    yes
    Is Qt supported: no
    Is Action needed: yes
    DESKTOP: XFCE
    GUESS_DESKTOP: $XDG_CURRENT_DESKTOP
    DISABLE_IMSETTINGS: 
    IMSETTINGS_DISABLE_DESKTOP_CHECK: 
    DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
    GTK_IM_MODULE: 
    QT_IM_MODULE: xim
    XMODIFIERS: @im=none
    IMSETTINGS_MODULE: none
    IMSETTINGS_INTEGRATE_DESKTOP: yes
    IMSETTINGS_DISABLE_SYS_XINPUTRC: no
    IMSETTINGS_DISABLE_USER_XINPUTRC: no
    IMSETTINGS_IGNORE_SESSION: 
    
    
    [        25.453489]: IMSettings-Daemon[1790]: WARNING **: Child process exited with code 1
    
    [        25.517704]: IMSettings-LXDE backend[1790]: WARNING **: Unable to load the lxde configuration file.
    
    [        25.517816]: IMSettings-XIM backend[1790]: WARNING **: imsettings-xim XIM server isn't running.
    
    [        25.524245]: IMSettings-Qt backend[1790]: WARNING **: Unable to obtain the DefaultInputMethod: Key file does not have group “Qt”
    [        25.533190]: IMSettings-Daemon[1790]: INFO: X Display is available
    [        38.583797]: libnotify[1790]: DEBUG: SNAP app: (null)
    [        38.584533]: IMSettings-Daemon[1790]: INFO: Unloading imesttings module: cinnamon-gsettings
    [        38.584626]: IMSettings-Daemon[1790]: INFO: Unloading imesttings module: mate-gsettings
    [        38.584689]: IMSettings-Daemon[1790]: INFO: Unloading imesttings module: xfce
    [        38.584774]: IMSettings-Daemon[1790]: INFO: Unloading imesttings module: gsettings
    [        38.584825]: IMSettings-Daemon[1790]: INFO: Unloading imesttings module: lxde
    [        38.584869]: IMSettings-Daemon[1790]: INFO: Unloading imesttings module: xim
    [        38.584929]: IMSettings-Daemon[1790]: INFO: Unloading imesttings module: qt
    [        38.584973]: IMSettings-Daemon[1790]: INFO: imsettings-daemon is shut down.
    [        38.605543]: IMSettings-Daemon[2806]: INFO: Starting imsettings-daemon...
    [        38.605684]: IMSettings-Daemon[2806]: INFO:   [HOME=/home/mfabian/.config/imsettings]
    [        38.605710]: IMSettings-Daemon[2806]: INFO:   [XINPUTRCDIR=/etc/X11/xinit/]
    [        38.605725]: IMSettings-Daemon[2806]: INFO:   [XINPUTDIR=/etc/X11/xinit/xinput.d/]
    
    [        38.605737]: IMSettings-Daemon[2806]: INFO:   [MODULEDIR=/usr/lib64/imsettings]
    
    [        38.605750]: IMSettings-Daemon[2806]: INFO:   [MODULES=qt, xim, lxde, gsettings, xfce, mate-gsettings, cinnamon-gsettings]
    
    [        45.846848]: libnotify[2806]: DEBUG: SNAP app: (null)
    [        45.847632]: IMSettings-Daemon[2806]: INFO: Unloading imesttings module: cinnamon-gsettings
    [        45.847765]: IMSettings-Daemon[2806]: INFO: Unloading imesttings module: mate-gsettings
    [        45.847906]: IMSettings-Daemon[2806]: INFO: Unloading imesttings module: xfce
    [        45.848164]: IMSettings-Daemon[2806]: INFO: Unloading imesttings module: gsettings
    [        45.848217]: IMSettings-Daemon[2806]: INFO: Unloading imesttings module: lxde
    [        45.848257]: IMSettings-Daemon[2806]: INFO: Unloading imesttings module: xim
    [        45.848289]: IMSettings-Daemon[2806]: INFO: Unloading imesttings module: qt
    [        45.848322]: IMSettings-Daemon[2806]: INFO: imsettings-daemon is shut down.
    [        45.864906]: IMSettings-Daemon[2988]: INFO: Starting imsettings-daemon...
    [        45.864970]: IMSettings-Daemon[2988]: INFO:   [HOME=/home/mfabian/.config/imsettings]
    [        45.864985]: IMSettings-Daemon[2988]: INFO:   [XINPUTRCDIR=/etc/X11/xinit/]
    [        45.864998]: IMSettings-Daemon[2988]: INFO:   [XINPUTDIR=/etc/X11/xinit/xinput.d/]
    
    [        45.865009]: IMSettings-Daemon[2988]: INFO:   [MODULEDIR=/usr/lib64/imsettings]
    
    [        45.865022]: IMSettings-Daemon[2988]: INFO:   [MODULES=qt, xim, lxde, gsettings, xfce, mate-gsettings, cinnamon-gsettings]
    
    [mfabian@fedora ~]$





Reproducible: Always

Comment 1 Mike FABIAN 2023-09-05 18:10:39 UTC
Created attachment 1987093 [details]
Screenshot showing the error dialog box of im-chooser

Comment 2 Mike FABIAN 2023-09-05 18:14:47 UTC
Created attachment 1987094 [details]
Selecting "Settings -> Input Method Selector” form the XFCE menu shows a similar error dialog

Comment 3 Mike FABIAN 2023-09-05 18:20:40 UTC
The  .config/imsettings/ directory is empty:

[mfabian@fedora ~]$ ls .config/imsettings/
[mfabian@fedora ~]$

Comment 4 Mike FABIAN 2023-09-05 18:36:00 UTC
Now I manually created this link:

    [mfabian@fedora ~]$ ll .config/imsettings/xinputrc 
    lrwxrwxrwx. 1 mfabian mfabian 33 Sep  6 03:28 .config/imsettings/xinputrc -> /etc/X11/xinit/xinput.d/ibus.conf
    [mfabian@fedora ~]$ cat /etc/X11/xinit/xinput.d/ibus.conf
    XIM=ibus
    XIM_PROGRAM="/usr/bin/ibus-daemon"
    ICON="ibus"
    XIM_ARGS="-r --xim"
    PREFERENCE_PROGRAM=/usr/bin/ibus-setup
    SHORT_DESC="IBus"
    GTK_IM_MODULE=ibus
    NOT_RUN=gnome3
    IMSETTINGS_IGNORE_SESSION=KDE-wayland
    
    if test -f /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \
       test -f /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \
       test -f /usr/lib64/qt4/plugins/inputmethods/libqtim-ibus.so || \
       test -f /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so;
    then
        QT_IM_MODULE=ibus
    else
        QT_IM_MODULE=xim
    fi
    [mfabian@fedora ~]$ 

Didn’t help, I still cannot use ibus in XFCE.

Comment 5 Mike FABIAN 2023-09-05 18:36:37 UTC
[mfabian@fedora ~]$ ps aux | grep ibus
mfabian     4956  0.0  0.0 222816  2432 pts/1    S+   03:34   0:00 grep --color=auto ibus
[mfabian@fedora ~]$

Comment 6 Mike FABIAN 2023-09-05 18:38:03 UTC
Now I manually start ibus like


    $ ibus-daemom -drx 

from the command line in XFCE and now I can use ibus.

Comment 7 Fedora Blocker Bugs Application 2023-09-06 05:54:08 UTC
Proposed as a Freeze Exception for 39-beta by Fedora user tagoh using the blocker tracking app because:

 Input Method can't  be configured on some dekstops properly due to this bug and this affects user experience about Input.

Comment 8 Fedora Update System 2023-09-06 05:56:59 UTC
FEDORA-2023-ba26c821ef has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ba26c821ef

Comment 9 Fedora Update System 2023-09-06 05:58:37 UTC
FEDORA-2023-ba26c821ef has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Akira TAGOH 2023-09-06 06:11:08 UTC
BTW you can use "imsettings-switch -nx" to bring up your favarite input method without im-chooser.

Comment 11 Fedora Update System 2023-09-06 06:12:52 UTC
FEDORA-2023-195e320af4 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-195e320af4

Comment 12 Mike FABIAN 2023-09-06 07:28:19 UTC
(In reply to Fedora Update System from comment #11)
> FEDORA-2023-195e320af4 has been submitted as an update to Fedora 39.
> https://bodhi.fedoraproject.org/updates/FEDORA-2023-195e320af4

I installed this update and it fixes the problem for me.

Now I can start im-chooser in XFCE and switch to ibus and it works! ☺

Comment 13 Adam Williamson 2023-09-06 22:06:58 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/1280 , marking accepted FE.

Comment 14 Fedora Update System 2023-09-07 02:23:32 UTC
FEDORA-2023-195e320af4 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-195e320af4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-195e320af4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2023-09-07 22:59:48 UTC
FEDORA-2023-195e320af4 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.