-
Notifications
You must be signed in to change notification settings - Fork 118
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
候選字界面跑到視窗左上方,無法輸入中文 #1067
Comments
same here |
我的解决方法: 降级 hyprland 到 39.9 版本,亲测有效 我之前的现象:在 hyprland 0.40.0,我必须要点击 waybar 的 fcitx5 图标,才能正常输入一种语言,比如我现在能输入中文了,那么我用快捷键切换到英文,fcitx5 的托盘就会飘到窗口左上方,这时候 如果我想输入英文,就必须要点击 waybar 的 fcitx5 图标,再用快捷键切换到英文才能正常输入英文,当然,中文也是一样。 我感觉我应该去 hyprland 提一下这个 issue,我认为是 hyprland 的问题,绝不是 fcitx5 的问题 Methos: I had the same problem. I solved it by downgrading hyprland to 39.9 Phenomenon: before resolve this problem, my problem was that everything except the terminal could not be typed properly, whether in English or Chinese. I must manually click on the Desktop Menu Bar fcitx5 icon to switch the language, and then can work in a odd way, Because I can only enter a language, if you want to use the shortcut key to switch to Chinese, it will float to the upper left of the window, if this time I can only enter Chinese, with the shortcut key to switch to English, will float to the upper left of the window, so switch language must click on the tray fcitx5 icon to switch 。 in shrot: you can only enter one language at a time. You can't switch with the shortcut key, or the tray will float to the top left. You must manually click the Desktop Menu Bar fcitx5 icon. Methods I have tried:/ etc / environment and gtk.conf are configured according to archwiki and have no effect. |
It's a great workaround, but I quit of further troubleshooting. Thanks for the reply, if someone use fcitx5-rime in Arch Linux like me; I suggest to try this RIME config, somehow it makes my IME more stable or just my personal experience. |
我的桌面环境是 hyprland 0.43.0。系统中没有添加任何有关 fcitx5 的相关环境配置。相反,我是通过开启应用的 wayland 支持来使其可以支持输入法的。 比如,我通过在 ~/.config 目录下添加一个 chrome-flags.conf 文件,并在其中写入:
这样就可以让 chrome 支持 fcitx5 输入法了。 对于 obsidian 这种我不知道该如何添加 flags 的应用,我是直接新建了一个用户的 desktop files,比如,我在 ~.local/share/applications 目录下新建了一个 obsidian.desktop 文件,在其中写入:
然后,关闭所有正在运行的 obsidian 程序,然后重启即可。如果您使用 wofi,记得,得用 drun 选项启动,不可以使用 run 选项,如果使用 run 选项,也可以解决,但是得添加另外的参数。 更多内容可以看下我的 dotfiles: https://github.com/fanlumaster/dotfiles。 |
Summary
有的程式不支持中文輸入。
目前碰到的是:google-chrome, spotify, obsidian
以下是我的配置
/etc/environment 配置
Steps to Reproduce
Switch IME in the input area
Expected Behavior
Can input Chinese
Output of fcitx5-diagnose command
System Info:
uname -a
:lsb_release
:lsb_release
not found./etc/lsb-release
:/etc/lsb-release
not found./etc/os-release
:Desktop Environment:
Cannot determine desktop environment.
XDG SESSION TYPE:
Bash Version:
Environment:
DISPLAY:
Keyboard Layout:
setxkbmap
:xprop
:Locale:
All locales:
Current locale:
Directories:
Home:
${XDG_CONFIG_HOME}
:Environment variable
XDG_CONFIG_HOME
is not set.Current value of
XDG_CONFIG_HOME
is~/.config
(/home/father/.config
).Fcitx5 Settings Directory:
Current fcitx5 settings directory is
~/.config/fcitx5
(/home/father/.config/fcitx5
).Current user:
The script is run as father (1000).
Fcitx State:
executable:
Found fcitx5 at
/usr/bin/fcitx5
.version:
Fcitx version:
5.1.9
process:
Found 1 fcitx5 process:
fcitx5-remote
:fcitx5-remote
works properly.DBus interface:
Using
dbus-send
to check dbus.Owner of DBus name
org.fcitx.Fcitx5
is:1.21
.PID of DBus name
org.fcitx.Fcitx5
owner is1757
.Debug information from dbus:
Fcitx Configure UI:
Config Tool Wrapper:
Found fcitx5-configtool at
/usr/bin/fcitx5-configtool
.Config GUI for qt:
Found
fcitx5-config-qt
at/usr/bin/fcitx5-config-qt
.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:
${XMODIFIERS}
:Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
Xim Server Name from Environment variable is fcitx.
XIM_SERVERS on root window:
Xim server name is the same with that set in the environment variable.
Qt:
qt4 -
${QT4_IM_MODULE}
:Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add
export QT_IM_MODULE=fcitx
to your~/.xprofile
. See Input Method Related Environment Variables: QT_IM_MODULE.fcitx5-qt4-immodule-probing
not found.qt5 -
${QT_IM_MODULE}
:Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add
export QT_IM_MODULE=fcitx
to your~/.xprofile
. See Input Method Related Environment Variables: QT_IM_MODULE.It is OK to use qt5 built-in Wayland im module if your compositor fully supports text-input protocol used by qt5.
Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:
qt6 -
${QT_IM_MODULE}
:Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add
export QT_IM_MODULE=fcitx
to your~/.xprofile
. See Input Method Related Environment Variables: QT_IM_MODULE.It is OK to use qt6 built-in Wayland im module if your compositor fully supports text-input protocol used by qt6.
Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:
Qt IM module files:
Found fcitx5 im module for qt:
/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
.Found unknown fcitx qt module:
/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so
.Found fcitx5 im module for qt6:
/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
.Found fcitx5 qt5 module:
/usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so
.Found fcitx5 qt6 module:
/usr/lib/fcitx5/qt6/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:
gtk -
${GTK_IM_MODULE}
: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.It is OK to use gtk built-in Wayland im module if your compositor fully supports text-input protocol used by gtk.
Using fcitx5-gtk2-immodule-probing to check the actual im module to be used under current environment:
Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:
Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:
gtk-query-immodules
:gtk 2:
Found
gtk-query-immodules
for gtk2.24.33
at/usr/bin/gtk-query-immodules-2.0
.Version Line:
Found fcitx5 im modules for gtk
2.24.33
.gtk 3:
Found
gtk-query-immodules
for gtk3.24.42
at/usr/bin/gtk-query-immodules-3.0
.Version Line:
Found fcitx5 im modules for gtk
3.24.42
.Gtk IM module cache:
gtk 2:
Found immodules cache for gtk
2.24.33
at/usr/lib/gtk-2.0/2.10.0/immodules.cache
.Version Line:
Found fcitx5 im modules for gtk
2.24.33
.gtk 3:
Found immodules cache for gtk
3.24.42
at/usr/lib/gtk-3.0/3.0.0/immodules.cache
.Version Line:
Found fcitx5 im modules for gtk
3.24.42
.Gtk IM module files:
gtk 2:
All found Gtk 2 immodule files exist.
gtk 3:
All found Gtk 3 immodule files exist.
gtk 4:
All found Gtk 4 immodule files exist.
Configuration:
Fcitx Addons:
Addon Config Dir:
Found fcitx5 addon config directory:
/usr/share/fcitx5/addon
.Addon List:
Found 22 enabled addons:
Found 0 disabled addons:
Addon Libraries:
All libraries for all addons are found.
User Interface:
Found 3 enabled user interface addons:
Input Methods:
/home/father/.config/fcitx5/profile
:Log:
date
:/home/father/.config/fcitx5/crash.log
:/home/father/.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.
The text was updated successfully, but these errors were encountered: