Fcitx never shows input box

Fcitx is selected as the input method on Fedora 36 KDE. Chinese language (keyboard-chinese) is added to fcitx. The input icon can switch between “en” and “zh”, but when it’s “zh” (chinese), I can still only type regular english letters. No input box shows up for me to select Chinese characters.

The issue has been tested in Firefox, Kwrite, and the test input box in fcitx preference setting, but it remains the same for all applications.

Here’s the output from fcitx5-diagnose:

# System Info:
1.  `uname -a`:

        Linux PythonLearner 5.18.16-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 3 15:44:49 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

2.  `lsb_release`:

    `lsb_release` not found.

3.  `/etc/lsb-release`:

    `/etc/lsb-release` not found.

4.  `/etc/os-release`:

        NAME="Fedora Linux"
        VERSION="36 (KDE Plasma)"
        ID=fedora
        VERSION_ID=36
        VERSION_CODENAME=""
        PLATFORM_ID="platform:f36"
        PRETTY_NAME="Fedora Linux 36 (KDE Plasma)"
        ANSI_COLOR="0;38;2;60;110;180"
        LOGO=fedora-logo-icon
        CPE_NAME="cpe:/o:fedoraproject:fedora:36"
        HOME_URL="https://fedoraproject.org/"
        DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/"
        SUPPORT_URL="https://discussion.fedoraproject.org/"
        BUG_REPORT_URL="https://bugzilla.redhat.com/"
        REDHAT_BUGZILLA_PRODUCT="Fedora"
        REDHAT_BUGZILLA_PRODUCT_VERSION=36
        REDHAT_SUPPORT_PRODUCT="Fedora"
        REDHAT_SUPPORT_PRODUCT_VERSION=36
        PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
        VARIANT="KDE Plasma"
        VARIANT_ID=kde

5.  Desktop Environment:

    Desktop environment is `kde`.

6.  XDG SESSION TYPE:

        XDG_SESSION_TYPE='wayland'

7.  Bash Version:

        BASH_VERSION='5.1.16(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':1'


        WAYLAND_DISPLAY='wayland-0'

2.  Keyboard Layout:

    1.  `setxkbmap`:

            xkb_keymap {
            	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
            	xkb_types     { include "complete"	};
            	xkb_compat    { include "complete"	};
            	xkb_symbols   { include "pc+cn+inet(evdev)"	};
            	xkb_geometry  { include "pc(pc105)"	};
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "cn", "", ""

3.  Locale:

    1.  All locales:

            aa_DJ
            aa_DJ.iso88591
            aa_DJ.utf8
            aa_ER
            aa_ER@saaho
            aa_ER.utf8
            aa_ER.utf8@saaho
            (... some locales trimmed to avoid word limit...)
            sgs_LT
            sgs_LT.utf8
            shn_MM
            shn_MM.utf8
            shs_CA
            shs_CA.utf8
            sid_ET
            sid_ET.utf8
            si_LK
            si_LK.utf8
            sk_SK
            sk_SK.iso88592
            sk_SK.utf8
            slovak
            slovene
            slovenian
            sl_SI
            sl_SI.iso88592
            sl_SI.utf8
            sm_WS
            sm_WS.utf8
            so_DJ
            so_DJ.iso88591
            so_DJ.utf8
            so_ET
            so_ET.utf8
            so_KE
            so_KE.iso88591
            so_KE.utf8
            so_SO
            so_SO.iso88591
            so_SO.utf8
            spanish
            sq_AL
            sq_AL.iso88591
            sq_AL.utf8
            sq_MK
            sq_MK.utf8
            sr_ME
            sr_ME.utf8
            sr_RS
            sr_RS@latin
            sr_RS.utf8
            sr_RS.utf8@latin
            ss_ZA
            ss_ZA.utf8
            st_ZA
            st_ZA.iso88591
            st_ZA.utf8
            sv_FI
            sv_FI@euro
            sv_FI.iso88591
            sv_FI.iso885915@euro
            sv_FI.utf8
            sv_SE
            sv_SE.iso88591
            sv_SE.iso885915
            sv_SE.utf8
            swedish
            sw_KE
            sw_KE.utf8
            sw_TZ
            sw_TZ.utf8
            szl_PL
            szl_PL.utf8
            ta_IN
            ta_IN.utf8
            ta_LK
            ta_LK.utf8
            tcy_IN.utf8
            te_IN
            te_IN.utf8
            tg_TJ
            tg_TJ.koi8t
            tg_TJ.utf8
            thai
            the_NP
            the_NP.utf8
            th_TH
            th_TH.tis620
            th_TH.utf8
            ti_ER
            ti_ER.utf8
            ti_ET
            ti_ET.utf8
            tig_ER
            tig_ER.utf8
            tk_TM
            tk_TM.utf8
            tl_PH
            tl_PH.iso88591
            tl_PH.utf8
            tn_ZA
            tn_ZA.utf8
            to_TO
            to_TO.utf8
            tpi_PG
            tpi_PG.utf8
            tr_CY
            tr_CY.iso88599
            tr_CY.utf8
            tr_TR
            tr_TR.iso88599
            tr_TR.utf8
            ts_ZA
            ts_ZA.utf8
            tt_RU
            tt_RU@iqtelif
            tt_RU.utf8
            tt_RU.utf8@iqtelif
            turkish
            ug_CN
            ug_CN.utf8
            uk_UA
            uk_UA.koi8u
            uk_UA.utf8
            unm_US
            unm_US.utf8
            ur_IN
            ur_IN.utf8
            ur_PK
            ur_PK.utf8
            uz_UZ
            uz_UZ@cyrillic
            uz_UZ.iso88591
            uz_UZ.utf8
            uz_UZ.utf8@cyrillic
            ve_ZA
            ve_ZA.utf8
            vi_VN
            vi_VN.utf8
            wa_BE
            wa_BE@euro
            wa_BE.iso88591
            wa_BE.iso885915@euro
            wa_BE.utf8
            wae_CH
            wae_CH.utf8
            wal_ET
            wal_ET.utf8
            wo_SN
            wo_SN.utf8
            xh_ZA
            xh_ZA.iso88591
            xh_ZA.utf8
            yi_US
            yi_US.cp1255
            yi_US.utf8
            yo_NG
            yo_NG.utf8
            yue_HK
            yue_HK.utf8
            yuw_PG
            yuw_PG.utf8
            zh_CN
            zh_CN.gb18030
            zh_CN.gb2312
            zh_CN.gbk
            zh_CN.utf8
            zh_HK
            zh_HK.big5hkscs
            zh_HK.utf8
            zh_SG
            zh_SG.gb2312
            zh_SG.gbk
            zh_SG.utf8
            zh_TW
            zh_TW.big5
            zh_TW.euctw
            zh_TW.utf8
            zu_ZA
            zu_ZA.iso88591
            zu_ZA.utf8

    2.  Current locale:

            LANG=en_GB.UTF-8
            LC_CTYPE="en_GB.UTF-8"
            LC_NUMERIC="en_GB.UTF-8"
            LC_TIME="en_GB.UTF-8"
            LC_COLLATE="en_GB.UTF-8"
            LC_MONETARY=C.UTF-8
            LC_MESSAGES="en_GB.UTF-8"
            LC_PAPER="en_GB.UTF-8"
            LC_NAME="en_GB.UTF-8"
            LC_ADDRESS="en_GB.UTF-8"
            LC_TELEPHONE="en_GB.UTF-8"
            LC_MEASUREMENT=C.UTF-8
            LC_IDENTIFICATION="en_GB.UTF-8"
            LC_ALL=

4.  Directories:

    1.  Home:

            /home/shaoyun

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

        Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/shaoyun/.config`).

    3.  Fcitx5 Settings Directory:

        Current fcitx5 settings directory is `~/.config/fcitx5` (`/home/shaoyun/.config/fcitx5`).

5.  Current user:

    The script is run as shaoyun (1000).

# Fcitx State:
1.  executable:

    Found fcitx5 at `/usr/bin/fcitx5`.

2.  version:

    Fcitx version: `5.0.18`

3.  process:

    Found 2 fcitx5 processes:

           8428 fcitx5
          13078 fcitx5-diagnose

4.  `fcitx5-remote`:

    `fcitx5-remote` works properly.

5.  DBus interface:

    Using `dbus-send` to check dbus.

    Owner of DBus name `org.fcitx.Fcitx5` is `:1.385`.

    PID of DBus name `org.fcitx.Fcitx5` owner is `8428`.

    Debug information from dbus:

           Group [x11::1] has 0 InputContext(s)
        Group [wayland:] has 7 InputContext(s)
          IC [77db4dcca26140e4a31dcb8009cb6e1c] program:konsole frontend:dbus cap:e001800072 focus:1
          IC [74a685d1f7684a3093ecb0aa2414b6d7] program:plasmashell frontend:dbus cap:e001820072 focus:0
          IC [e950e9b435714900a496f179b8889186] program:firefox frontend:dbus cap:6001000012 focus:0
          IC [f98c34d4649342b4996501785e8a943e] program:firefox frontend:dbus cap:6001000012 focus:0
          IC [388db442f9fa475b84c7a2d65b4e1250] program:firefox frontend:dbus cap:e001000052 focus:0
          IC [51fb63239a364fb3a9dd028c9b712bcf] program:firefox frontend:dbus cap:6001000012 focus:0
          IC [5c71526f79984922aa027895fb3ecd42] program:plasmashell frontend:dbus cap:e001800072 focus:0
        Input Context without group

# Fcitx Configure UI:
1.  Config Tool Wrapper:

    Found fcitx5-configtool at `/usr/bin/fcitx5-configtool`.

2.  Config GUI for qt:

    **Config GUI for qt not found.**

3.  Config GUI for kde:

    Found fcitx5 kcm module.

        kcm_fcitx5                     - Configure Input Method

# Frontends setup:
## Xim:
1.  `${XMODIFIERS}`:

    **Environment variable XMODIFIERS is "@im=fcitx5" instead of "@im=fcitx". Please check if you have exported it incorrectly in any of your init files.**

    **Please set environment variable XMODIFIERS to "@im=fcitx" using the tool your distribution provides or add `export XMODIFIERS=@im=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: XMODIFIERS](http://fcitx-im.org/wiki/Input_method_related_environment_variables#XMODIFIERS).**

    Xim Server Name from Environment variable is fcitx5.

2.  XIM_SERVERS on root window:

    Xim server name is the same with that set in the environment variable.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

3.  Qt IM module files:

    Found unknown fcitx qt module: `/lib64/qt5/plugins/kcms/kcm_fcitx5.so`.
    Found fcitx5 im module for qt5: `/lib64/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found fcitx5 im module for qt6: `/lib64/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found fcitx5 qt5 module: `/lib64/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
    **Cannot find fcitx5 input method module for Qt4.**

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    **Environment variable GTK_IM_MODULE is "fcitx:xim" instead of "fcitx". Please check if you have exported it incorrectly in any of your init files.**
    **You may have trouble using fcitx in gtk programs.**

    **Please set environment variable GTK_IM_MODULE to "fcitx" using the tool your distribution provides or add `export GTK_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#GTK_IM_MODULE).**

2.  `gtk-query-immodules`:

    1.  gtk 2:

        Found `gtk-query-immodules` for gtk `2.24.33` at `/usr/bin/gtk-query-immodules-2.0-32`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0-32 from gtk+-2.24.33

        **Failed to find fcitx5 in the output of `/usr/bin/gtk-query-immodules-2.0-32`**

        Found `gtk-query-immodules` for gtk `2.24.33` at `/usr/bin/gtk-query-immodules-2.0-64`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0-64 from gtk+-2.24.33

        Found fcitx5 im modules for gtk `2.24.33`.

            "/usr/lib64/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        Found `gtk-query-immodules` for gtk `3.24.34` at `/usr/bin/gtk-query-immodules-3.0-32`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0-32 from gtk+-3.24.34

        **Failed to find fcitx5 in the output of `/usr/bin/gtk-query-immodules-3.0-32`**

        Found `gtk-query-immodules` for gtk `3.24.34` at `/usr/bin/gtk-query-immodules-3.0-64`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0-64 from gtk+-3.24.34

        Found fcitx5 im modules for gtk `3.24.34`.

            "/usr/lib64/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.33` at `/lib64/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

            # Created by gtk-query-immodules-2.0-64 from gtk+-2.24.33

        Found fcitx5 im modules for gtk `2.24.33`.

            "/usr/lib64/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        Found immodules cache for gtk `3.24.34` at `/lib64/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by gtk-query-immodules-3.0-64 from gtk+-3.24.34

        Found fcitx5 im modules for gtk `3.24.34`.

            "/usr/lib64/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

    3.  gtk 4:

        **Cannot find immodules cache for gtk 4**

        **Cannot find fcitx5 im module for gtk 4 in cache.**

4.  Gtk IM module files:

    1.  gtk 2:

        All found Gtk 2 immodule files exist.

    2.  gtk 3:

        All found Gtk 3 immodule files exist.

    3.  gtk 4:

        All found Gtk 4 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

    Found fcitx5 addon config directory: `/usr/share/fcitx5/addon`.

2.  Addon List:

    1.  Found 28 enabled addons:

            Simplified and Traditional Chinese Translation 5.0.14
            Classic User Interface 5.0.18
            Clipboard 5.0.18
            Cloud Pinyin 5.0.14
            DBus 5.0.18
            DBus Frontend 5.0.18
            Emoji 5.0.18
            Fcitx4 Frontend 5.0.18
            Full width character 5.0.14
            IBus Frontend 5.0.18
            Lua IME API 5.0.9
            Input method selector 5.0.18
            Keyboard 5.0.18
            KDE Input Method Panel 5.0.18
            Lua Addon Loader 5.0.9
            Status Notifier 5.0.18
            Notification 5.0.18
            Pinyin 5.0.14
            Extra Pinyin functionality 5.0.14
            Punctuation 5.0.14
            Quick Phrase 5.0.18
            Spell 5.0.18
            Table 5.0.14
            Unicode 5.0.18
            Wayland 5.0.18
            Wayland Input method frontend 5.0.18
            XCB 5.0.18
            X Input Method Frontend 5.0.18

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 2 enabled user interface addons:

        Classic User Interface
        KDE Input Method Panel

## Input Methods:
1.  `/home/shaoyun/.config/fcitx5/profile`:

        [Groups/0]
        # Group Name
        Name="Group 1"
        # Layout
        Default Layout=cn
        # Default Input Method
        DefaultIM=keyboard-us

        [Groups/0/Items/0]
        # Name
        Name=keyboard-cn
        # Layout
        Layout=

        [Groups/0/Items/1]
        # Name
        Name=keyboard-us
        # Layout
        Layout=

        [Groups/0/Items/2]
        # Name
        Name=cangjie
        # Layout
        Layout=cn

        [GroupOrder]
        0="Group 1"

# Log:
1.  `date`:

        Sat 13 Aug 15:06:22 CEST 2022

2.  `/home/shaoyun/.config/fcitx5/crash.log`:

    `/home/shaoyun/.config/fcitx5/crash.log` not found.

**Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.**

**Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.**

Based on this output, I tried also exporting:

export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

And then I ran firefox or kwrite on that Konsole.

Again, pressing Ctrl+Space shows a tiny popup indicating that the input language has changed, but typing haha just renders that text (rather than show the input box with chinese characters).

1 Like

Hello. This is not the right place for reporting bugs, they should go into Bugzilla. Please see How to file a bug :: Fedora Docs . Only if the issue seems widespread, we can make a description here in Common Issues. Thanks.

I’m an English speaker, who uses Japanese and fcitx. If possible, I’d say test in Gnome, as Fedora is so gnome-centric, that often things just work but fail to work in any other desktop environment or window manager.

I use openbox or dwm. What I find that I have to do is start fcitx. Then I edit $HOME/.config/fcitx/profile. Where you see the long list of possible input managers, (in my case, in Fedora, either kkc or anthy), after it’s listed it says False. I change that False to True. You might have to log out and log in again.

Now, I have no idea if this will work with Chinese and KDE.

You might also be able to fix it with fcitx5-configtool. You’ve probably done that already, but just in case.

I would say, if possible, also try quickly installing a VM and seeing if the problem is consistent. It might be for some reason that it just went bad on this install. I would also say, without trying to cause argument, that this is a place to ask, as you’re having a problem with an aspect of using Fedora and at this point, don’t know if it’s an issue others are also having.