Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分应用无法输入中文 #1229

Open
afrusrsc opened this issue Jan 11, 2025 · 1 comment
Open

部分应用无法输入中文 #1229

afrusrsc opened this issue Jan 11, 2025 · 1 comment

Comments

@afrusrsc
Copy link

Summary

在dia和qt中,无法切换到中文输入法,无法输入中文,其它应用中正常

Steps to Reproduce

1.sudo apt install dia # v0.97.3
2.打开dia
3.拖放一个流程图元素
4.切换到中文输入法(快捷键/鼠标选),状态栏图标无变化,无法切到中文输入
5.按键录入,输入的是英文
6.重复4、5
7.qt5.14.2中同样无法切换并输入中文

Expected Behavior

可正常输入中文

Output of fcitx5-diagnose command

System Info:

  1. uname -a:

    Linux vm 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux
    
  2. lsb_release -a:

    Distributor ID:	Debian
    Description:	Debian GNU/Linux 12 (bookworm)
    Release:	12
    Codename:	bookworm
    
  3. lsb_release -d:

    Description:	Debian GNU/Linux 12 (bookworm)
    
  4. /etc/lsb-release:

    /etc/lsb-release not found.

  5. /etc/os-release:

    PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
    NAME="Debian GNU/Linux"
    VERSION_ID="12"
    VERSION="12 (bookworm)"
    VERSION_CODENAME=bookworm
    ID=debian
    HOME_URL="https://www.debian.org/"
    SUPPORT_URL="https://www.debian.org/support"
    BUG_REPORT_URL="https://bugs.debian.org/"
    
  6. Desktop Environment:

    Desktop environment is xfce.

  7. XDG SESSION TYPE:

    XDG_SESSION_TYPE='x11'
    
  8. Bash Version:

    BASH_VERSION='5.2.15(1)-release'
    

Environment:

  1. DISPLAY:

    DISPLAY=':0.0'
    
    
    WAYLAND_DISPLAY=''
    
  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:

      C
      C.utf8
      POSIX
      zh_CN.utf8
      
    2. Current locale:

      LANG=zh_CN.UTF-8
      LANGUAGE=zh_CN:zh
      LC_CTYPE="C"
      LC_NUMERIC="C"
      LC_TIME="C"
      LC_COLLATE="C"
      LC_MONETARY="C"
      LC_MESSAGES="C"
      LC_PAPER="C"
      LC_NAME="C"
      LC_ADDRESS="C"
      LC_TELEPHONE="C"
      LC_MEASUREMENT="C"
      LC_IDENTIFICATION="C"
      LC_ALL=C
      
  4. Directories:

    1. Home:

      /home/xxx
      
    2. ${XDG_CONFIG_HOME}:

      Environment variable XDG_CONFIG_HOME is not set.

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

    3. Fcitx5 Settings Directory:

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

  5. Current user:

    The script is run as xxx (1000).

Fcitx State:

  1. executable:

    Found fcitx5 at /usr/bin/fcitx5.

  2. version:

    Fcitx version: 5.0.21

  3. process:

    Found 1 fcitx5 process:

       4109 fcitx5
    
  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.15.

    PID of DBus name org.fcitx.Fcitx5 owner is 4109.

    Debug information from dbus:

       Group [x11::0] has 9 InputContext(s)
      IC [700e917ebce3432b949c2200bf16f98c] program:dia frontend:dbus cap:6000000012 focus:0
      IC [3925f06e79ec423c9e0e70569c6487e9] program:dia frontend:dbus cap:6000000012 focus:0
      IC [b7ad239d3f044ce2b3105b11152a87fb] program:dia frontend:dbus cap:6000000012 focus:0
      IC [96e775815f784c698386e910b4cac097] program:dia frontend:dbus cap:6000000012 focus:0
      IC [a9b24fe3c9de4cd7af03ab999c3a2d9f] program:dia frontend:dbus cap:6000000012 focus:0
      IC [7518985a66e246e1970418f5857616bc] program:dia frontend:dbus cap:6000000012 focus:0
      IC [4aed02d27987499288084a8c88571d7f] program:dia frontend:dbus cap:6000000012 focus:0
      IC [d5e37ea34c074e5eac8091047da243cc] program:dia frontend:dbus cap:6000000012 focus:0
      IC [3efa92ad95634931a164bc6d856dfa18] program:xfce4-terminal frontend:dbus cap:6000000012 focus:1
    Input Context without group
    

Fcitx Configure UI:

  1. Config Tool Wrapper:

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

  2. Config GUI for qt:

    Found fcitx5-config-qt at /usr/bin/fcitx5-config-qt.

  3. Config GUI for kde:

    kcmshell5 not found.

Frontends setup:

Xim:

  1. ${XMODIFIERS}:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

  2. XIM_SERVERS on root window:

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

  3. XIM encoding:

    Your LC_CTYPE is set to C whose encoding is not UTF-8. You may have trouble committing strings using XIM.

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 fcitx5 im module for qt6: /usr/lib/x86_64-linux-gnu/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.
    Found fcitx5 qt5 module: /usr/lib/x86_64-linux-gnu/fcitx5/qt5/libfcitx-quickphrase-editor5.so.
    Found fcitx5 im module for qt5: /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    Cannot find fcitx5 input method module for Qt4.

Gtk:

  1. gtk - ${GTK_IM_MODULE}:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

  2. gtk-query-immodules:

    1. gtk 2:

      Cannot find gtk-query-immodules for gtk 2

      Cannot find fcitx5 im module for gtk 2.

    2. gtk 3:

      Cannot find gtk-query-immodules for gtk 3

      Cannot find fcitx5 im module for gtk 3.

  3. Gtk IM module cache:

    1. gtk 2:

      Found immodules cache for gtk 2.24.33 at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache.
      Version Line:

      # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.33
      

      Found fcitx5 im modules for gtk 2.24.33.

      "/usr/lib/x86_64-linux-gnu/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.38 at /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache.
      Version Line:

      # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.24.38
      

      Found fcitx5 im modules for gtk 3.24.38.

      "/usr/lib/x86_64-linux-gnu/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.16
      Classic User Interface 5.0.21
      Clipboard 5.0.21
      Cloud Pinyin 5.0.16
      DBus 5.0.21
      DBus Frontend 5.0.21
      Emoji 5.0.21
      Fcitx4 Frontend 5.0.21
      Full width character 5.0.16
      IBus Frontend 5.0.21
      Lua IME API 5.0.10
      Input method selector 5.0.21
      Keyboard 5.0.21
      KDE Input Method Panel 5.0.21
      Lua Addon Loader 5.0.10
      Status Notifier 5.0.21
      Notification 5.0.21
      Pinyin 5.0.16
      Extra Pinyin functionality 5.0.16
      Punctuation 5.0.16
      Quick Phrase 5.0.21
      Spell 5.0.21
      Table 5.0.16
      Unicode 5.0.21
      Wayland 5.0.21
      Wayland Input method frontend 5.0.21
      XCB 5.0.21
      X Input Method Frontend 5.0.21
      
    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/xxx/.config/fcitx5/profile:

    [Groups/0]
    # Group Name
    Name=默认
    # Layout
    Default Layout=cn
    # Default Input Method
    DefaultIM=wbpy
    
    [Groups/0/Items/0]
    # Name
    Name=keyboard-cn
    # Layout
    Layout=
    
    [Groups/0/Items/1]
    # Name
    Name=wbpy
    # Layout
    Layout=
    
    [GroupOrder]
    0=默认
    

Log:

  1. date:

    Sat Jan 11 11:37:03 CST 2025
    
  2. /home/xxx/.config/fcitx5/crash.log:

    /home/xxx/.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.

@afrusrsc
Copy link
Author

afrusrsc commented Jan 11, 2025

lmde6中也是同样的问题

System Info:

  1. uname -a:

    Linux vm 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux
    
  2. lsb_release -a:

    Distributor ID:	Linuxmint
    Description:	LMDE 6 (faye)
    Release:	6
    Codename:	faye
    
  3. lsb_release -d:

    Description:	LMDE 6 (faye)
    
  4. /etc/lsb-release:

    /etc/lsb-release not found.

  5. /etc/os-release:

    PRETTY_NAME="LMDE 6 (faye)"
    NAME="LMDE"
    VERSION_ID="6"
    VERSION="6 (faye)"
    VERSION_CODENAME=faye
    ID=linuxmint
    HOME_URL="https://www.linuxmint.com/"
    SUPPORT_URL="https://forums.linuxmint.com/"
    BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
    PRIVACY_POLICY_URL="https://www.linuxmint.com/"
    ID_LIKE=debian
    DEBIAN_CODENAME=bookworm
    
  6. Desktop Environment:

    Desktop environment is cinnamon.

  7. XDG SESSION TYPE:

    XDG_SESSION_TYPE='x11'
    
  8. Bash Version:

    BASH_VERSION='5.2.15(1)-release'
    

Environment:

  1. DISPLAY:

    DISPLAY=':0'
    
    
    WAYLAND_DISPLAY=''
    
  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)+group(win_space_toggle)"	};
      	xkb_geometry  { include "pc(pc105)"	};
      };
      
    2. xprop:

      _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "cn", "", "grp:win_space_toggle"
      
  3. Locale:

    1. All locales:

      C
      C.utf8
      POSIX
      zh_CN.utf8
      
    2. Current locale:

      LANG=zh_CN.UTF-8
      LANGUAGE=
      LC_CTYPE="C"
      LC_NUMERIC="C"
      LC_TIME="C"
      LC_COLLATE="C"
      LC_MONETARY="C"
      LC_MESSAGES="C"
      LC_PAPER="C"
      LC_NAME="C"
      LC_ADDRESS="C"
      LC_TELEPHONE="C"
      LC_MEASUREMENT="C"
      LC_IDENTIFICATION="C"
      LC_ALL=C
      
  4. Directories:

    1. Home:

      /home/xxx
      
    2. ${XDG_CONFIG_HOME}:

      Environment variable XDG_CONFIG_HOME is not set.

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

    3. Fcitx5 Settings Directory:

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

  5. Current user:

    The script is run as xxx (1000).

Fcitx State:

  1. executable:

    Found fcitx5 at /usr/bin/fcitx5.

  2. version:

    Fcitx version: 5.0.21

  3. process:

    Found 1 fcitx5 process:

      16609 fcitx5
    
  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.368.

    PID of DBus name org.fcitx.Fcitx5 owner is 16609.

    Debug information from dbus:

       Group [x11::0] has 13 InputContext(s)
      IC [22e3b43924c54c0bacb49661e5d422c4] program:dia frontend:fcitx4 cap:12 focus:0
      IC [5a8b0b80235842daaa02af7d1e8cbaf0] program:dia frontend:fcitx4 cap:12 focus:0
      IC [aa6ea1e46bfb458990c7598ea681de16] program:dia frontend:fcitx4 cap:12 focus:0
      IC [2d34ec4fef6643ddb6c5eb66cb0af078] program:dia frontend:fcitx4 cap:12 focus:0
      IC [c07138970d0b4d1c92fded59f7ea6b5d] program:nemo-desktop frontend:fcitx4 cap:12 focus:0
      IC [583febd15f67485f95a3b90504bb6799] program:dia frontend:fcitx4 cap:12 focus:0
      IC [6df9537fa471485cb7d2ff0772f0fd0d] program:nemo-desktop frontend:fcitx4 cap:12 focus:0
      IC [66f1093118624615af213eb347525fba] program:dia frontend:fcitx4 cap:12 focus:0
      IC [ea1df1aa69d74908b2bff865a61a5591] program:nemo-desktop frontend:fcitx4 cap:12 focus:0
      IC [4f50b63e41ed461a9120c45ed551921a] program:dia frontend:fcitx4 cap:12 focus:0
      IC [eb88280b0e824a07a9b8ba9b38fe5961] program:dia frontend:fcitx4 cap:12 focus:0
      IC [4282522570f14f0ab677e2d52fec94b6] program:gnome-terminal- frontend:fcitx4 cap:12 focus:0
      IC [7092977c2dae497d9df941c5d5357ac2] program:gnome-terminal- frontend:fcitx4 cap:12 focus:1
    Input Context without group
    

Fcitx Configure UI:

  1. Config Tool Wrapper:

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

  2. Config GUI for qt:

    Found fcitx5-config-qt at /usr/bin/fcitx5-config-qt.

  3. Config GUI for kde:

    kcmshell5 not found.

Frontends setup:

Xim:

  1. ${XMODIFIERS}:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

  2. XIM_SERVERS on root window:

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

  3. XIM encoding:

    Your LC_CTYPE is set to C whose encoding is not UTF-8. You may have trouble committing strings using XIM.

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 fcitx5 im module for qt6: /lib/x86_64-linux-gnu/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.
    Found unknown fcitx qt module: /lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so.
    Found fcitx5 im module for qt5: /lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.
    Found fcitx5 qt5 module: /lib/x86_64-linux-gnu/fcitx5/qt5/libfcitx-quickphrase-editor5.so.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    Cannot find fcitx5 input method module for Qt4.

Gtk:

  1. gtk - ${GTK_IM_MODULE}:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

  2. gtk-query-immodules:

    1. gtk 2:

      Cannot find gtk-query-immodules for gtk 2

      Cannot find fcitx5 im module for gtk 2.

    2. gtk 3:

      Cannot find gtk-query-immodules for gtk 3

      Cannot find fcitx5 im module for gtk 3.

  3. Gtk IM module cache:

    1. gtk 2:

      Found immodules cache for gtk 2.24.33 at /lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache.
      Version Line:

      # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.33
      

      Found fcitx5 im modules for gtk 2.24.33.

      "/usr/lib/x86_64-linux-gnu/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.38 at /lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache.
      Version Line:

      # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.24.38
      

      Found fcitx5 im modules for gtk 3.24.38.

      "/usr/lib/x86_64-linux-gnu/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.16
      Classic User Interface 5.0.21
      Clipboard 5.0.21
      Cloud Pinyin 5.0.16
      DBus 5.0.21
      DBus Frontend 5.0.21
      Emoji 5.0.21
      Fcitx4 Frontend 5.0.21
      Full width character 5.0.16
      IBus Frontend 5.0.21
      Lua IME API 5.0.10
      Input method selector 5.0.21
      Keyboard 5.0.21
      KDE Input Method Panel 5.0.21
      Lua Addon Loader 5.0.10
      Status Notifier 5.0.21
      Notification 5.0.21
      Pinyin 5.0.16
      Extra Pinyin functionality 5.0.16
      Punctuation 5.0.16
      Quick Phrase 5.0.21
      Spell 5.0.21
      Table 5.0.16
      Unicode 5.0.21
      Wayland 5.0.21
      Wayland Input method frontend 5.0.21
      XCB 5.0.21
      X Input Method Frontend 5.0.21
      
    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/xxx/.config/fcitx5/profile:

    [Groups/0]
    # Group Name
    Name=默认
    # Layout
    Default Layout=cn
    # Default Input Method
    DefaultIM=wbpy
    
    [Groups/0/Items/0]
    # Name
    Name=keyboard-cn
    # Layout
    Layout=
    
    [Groups/0/Items/1]
    # Name
    Name=wbpy
    # Layout
    Layout=
    
    [GroupOrder]
    0=默认
    

Log:

  1. date:

    Sat Jan 11 11:50:54 CST 2025
    
  2. /home/xxx/.config/fcitx5/crash.log:

    /home/xxx/.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant