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

Can not switch input methods #1111

Open
drunkwcodes opened this issue Aug 4, 2024 · 0 comments
Open

Can not switch input methods #1111

drunkwcodes opened this issue Aug 4, 2024 · 0 comments

Comments

@drunkwcodes
Copy link

Summary

想用 Ctrl+Space 在三個輸入法之間切換。但設定無效。
螢幕快照 2024-08-04 11-36-01

Steps to Reproduce

  1. Open fcitx setting
  2. Open global settings tab
  3. Change "枚舉輸入法向前" 並套用

Expected Behavior

可以用 ctrl + space 切換輸入法

Output of fcitx5-diagnose command

System Info:

  1. uname -a:

    Linux drunkwcodes-TUF-GAMING-FX504GD-FX80GD 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  5 21:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
    
  2. lsb_release -a:

    Distributor ID:	Ubuntu
    Description:	Ubuntu 24.04 LTS
    Release:	24.04
    Codename:	noble
    
  3. lsb_release -d:

    Description:	Ubuntu 24.04 LTS
    
  4. /etc/lsb-release:

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=24.04
    DISTRIB_CODENAME=noble
    DISTRIB_DESCRIPTION="Ubuntu 24.04 LTS"
    
  5. /etc/os-release:

    PRETTY_NAME="Ubuntu 24.04 LTS"
    NAME="Ubuntu"
    VERSION_ID="24.04"
    VERSION="24.04 LTS (Noble Numbat)"
    VERSION_CODENAME=noble
    ID=ubuntu
    ID_LIKE=debian
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    UBUNTU_CODENAME=noble
    LOGO=ubuntu-logo
    
  6. Desktop Environment:

    Desktop environment is gnome3.

  7. XDG SESSION TYPE:

    XDG_SESSION_TYPE='x11'
    
  8. Bash Version:

    BASH_VERSION='5.2.21(1)-release'
    

Environment:

  1. DISPLAY:

    DISPLAY=':1'
    
    
    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(pc104)"	};
      };
      
    2. xprop:

      _XKB_RULES_NAMES(STRING) = "evdev", "pc105+inet", "cn", "", ""
      
  3. Locale:

    1. All locales:

      C
      C.utf8
      POSIX
      ja_JP.utf8
      zh_CN.utf8
      zh_HK.utf8
      zh_SG.utf8
      zh_TW.utf8
      
    2. Current locale:

      LANG=zh_TW.UTF-8
      LANGUAGE=zh_TW:zh_CN
      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/drunkwcodes
      
    2. ${XDG_CONFIG_HOME}:

      Environment variable XDG_CONFIG_HOME is not set.

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

    3. Fcitx5 Settings Directory:

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

  5. Current user:

    The script is run as drunkwcodes (1000).

Fcitx State:

  1. executable:

    Found fcitx5 at /usr/bin/fcitx5.

  2. version:

    Fcitx version: 5.1.7

  3. process:

    Found 4 fcitx5 processes:

       4881 fcitx5
       5409 fcitx5-config-q
       6385 fcitx5-config-q
       6458 fcitx5-config-q
    
  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.133.

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

    Debug information from dbus:

       Group [x11::1] has 8 InputContext(s)
      IC [ab0df1ae45994a09936b3281a84c4700] program:gnome-terminal-server frontend:dbus cap:6000000032 focus:1
      IC [d1a31bf0abb54e04aee883063ceb2926] program:fcitx5-config-qt frontend:dbus cap:16000800072 focus:0
      IC [83a0c56d2a7f40a8bbe84468ca806103] program:google-chrome-stable frontend:dbus cap:6000000032 focus:0
      IC [4386900bb4d24a9c909f4b62103be527] program:fcitx5-config-qt frontend:dbus cap:16000800072 focus:0
      IC [4cc99d13297a45468538f66612d7ef76] program:fcitx5-config-qt frontend:dbus cap:16000800072 focus:0
      IC [8701d43baec44f10891d1011f238c1e5] program: frontend:ibus cap:52 focus:0
      IC [94d4c3a208de4d87ae6d251e4396d8a3] program:gnome-terminal-server frontend:dbus cap:6000000032 focus:0
      IC [8f9a6aafae3c427abcc4f34721f7498b] program:google-chrome-stable frontend:dbus cap:6000000032 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:

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

  3. Config GUI for kde:

    kcmshell5 not found.

Frontends setup:

The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using xargs -0 -L1 /proc/$PID/environ for a certain process that you find not working.

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.

    fcitx5-qt4-immodule-probing not found.

  2. qt5 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=xcb
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  3. qt6 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=xcb
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  4. Qt IM module files:

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

    fcitx5-gtk2-immodule-probing not found.

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    
  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-0t64/gtk-query-immodules-2.0 from gtk+-2.24.33
      

      Failed to find fcitx5 in immodule cache at /lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache

      Cannot find fcitx5 im module for gtk 2 in cache.

    2. gtk 3:

      Found immodules cache for gtk 3.24.41 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-0t64/gtk-query-immodules-3.0 from gtk+-3.24.41
      

      Found fcitx5 im modules for gtk 3.24.41.

      "/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:*" 
      
  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 22 enabled addons:

      Anthy 5.1.3
      Classic User Interface 5.1.7
      Clipboard 5.1.7
      DBus 5.1.7
      DBus Frontend 5.1.7
      Emoji 5.1.7
      Fcitx4 Frontend 5.1.7
      IBus Frontend 5.1.7
      Input method selector 5.1.7
      Keyboard 5.1.7
      KDE Input Method Panel 5.1.7
      Status Notifier 5.1.7
      Notification 5.1.7
      Quick Phrase 5.1.7
      Rime 5.1.4
      Spell 5.1.7
      Unicode 5.1.7
      DBus Virtual Keyboard 5.1.7
      Wayland 5.1.7
      Wayland Input method frontend 5.1.7
      XCB 5.1.7
      X Input Method Frontend 5.1.7
      
    2. Found 0 disabled addons:

  3. Addon Libraries:

    All libraries for all addons are found.

  4. User Interface:

    Found 3 enabled user interface addons:

    Classic User Interface
    KDE Input Method Panel
    DBus Virtual Keyboard
    

Input Methods:

  1. /home/drunkwcodes/.config/fcitx5/profile:

    [Groups/0]
    # Group Name
    Name=預設
    # Layout
    Default Layout=cn
    # Default Input Method
    DefaultIM=rime
    
    [Groups/0/Items/0]
    # Name
    Name=keyboard-cn
    # Layout
    Layout=
    
    [Groups/0/Items/1]
    # Name
    Name=rime
    # Layout
    Layout=
    
    [Groups/0/Items/2]
    # Name
    Name=anthy
    # Layout
    Layout=
    
    [GroupOrder]
    0=預設
    

Log:

  1. date:

    Sun Aug  4 11:38:37 CST 2024
    
  2. /home/drunkwcodes/.config/fcitx5/crash.log:

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