作者hungichen (hungichen)
看板Linux
标题Re: [问题] debian 无法在浏览器上使用fcitx5
时间Thu Feb 2 00:26:29 2023
※ 引述《hungichen (hungichen)》之铭言:
: 系统为 debian bullseye
: 在 chrome 上无法使用 fcitx5 输入中文,好像使用 chromium 的浏览器都不能使用
: 但是终端上没有问题,请问有什麽办法解决吗?
我後来直接 apt install fcitx5*, 把 fcitx5 开头的全装了,还是不行...
补上 diagnose 讯息和设定的变数
1. /etc/environment
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus
2. diagnose 讯息
# System Info:
1. `uname -a`:
Linux xxxxxxxxxx 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1
(2022-09-02) x86_64 GNU/Linux
2. `lsb_release -a`:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
3. `lsb_release -d`:
Description: Debian GNU/Linux 11 (bullseye)
4. `/etc/lsb-release`:
`/etc/lsb-release` not found.
5. `/etc/os-release`:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
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:
Cannot determine desktop environment.
7. Bash Version:
BASH_VERSION='5.1.4(1)-release'
# Environment:
1. DISPLAY:
DISPLAY=':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+us(colemak)+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
2. `xprop`:
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "colemak", ""
3. Locale:
1. All locale:
C
C.UTF-8
en_US.utf8
POSIX
zh_TW.utf8
2. Current locale:
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=zh_TW.UTF-8
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
4. Directories:
1. Home:
/home/xxxxxxxxxx
2. `${XDG_CONFIG_HOME}`:
Environment variable `XDG_CONFIG_HOME` is not set.
Current value of `XDG_CONFIG_HOME` is `~/.config`
(`/home/ar/.config`).
3. Fcitx5 Settings Directory:
Current fcitx5 settings directory is `~/.config/fcitx5`
(`/home/ar/.config/fcitx5`).
5. Current user:
The script is run as ar (1000).
# Fcitx State:
1. executable:
Found fcitx5 at `/usr/bin/fcitx5`.
2. version:
Fcitx version: `5.0.5`
3. process:
Found 1 fcitx5 process:
723 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.7`.
PID of DBus name `org.fcitx.Fcitx5` owner is `723`.
# 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.
## 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 qt5 module:
`/usr/lib/x86_64-linux-gnu/fcitx5/qt5/libfcitx5-skk-config.so`.
Found fcitx5 qt5 module:
`/usr/lib/x86_64-linux-gnu/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
Found unknown fcitx qt module:
`/usr/lib/x86_64-linux-gnu/fcitx/qt/libfcitx-quickphrase-editor5.so`.
Found unknown fcitx qt module:
`/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
Found fcitx5 im module for qt5:
`/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
**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.24` 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.24
Found fcitx5 im modules for gtk `3.24.24`.
"/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 33 enabled addons:
Chewing
Simplified and Traditional Chinese Translation
Classic User Inteface
Clipboard
Cloud Pinyin
DBus
DBus Frontend
Emoji
Fcitx4 Frontend
Full width character
Hangul
IBus Frontend
Lua IME API
Input method selector
Keyboard
KDE Input Method Panel
Lua Addon Loader
Mozc
Status Notifier
Notification
Pinyin
Extra Pinyin functionality
Punctuation
Quick Phrase
Rime
Skk
Spell
Table
Unicode
Wayland
Wayland Input method frontend
XCB
X Input Method Frontend
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 Inteface
KDE Input Method Panel
# Log:
1. `date`:
Thu 02 Feb 2023 12:16:57 AM CST
2. `/home/ar/.config/fcitx5/crash.log`:
`/crash.log` not found.
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.229.2.10 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1675268791.A.BDA.html
※ 编辑: hungichen (36.229.2.10 台湾), 02/02/2023 00:33:37
1F:→ leolarrel: 请问有装完後关闭X 然後重新启动X吗? 02/02 10:25
2F:→ hungichen: 试了楼上的方法,还是不行 02/02 13:09
3F:→ hungichen: 看来要嘛换浏览器,要嘛放弃debian了... 02/02 13:10
4F:推 Hurricaneger: 1.应该都要设成=fcitx5吧? 02/06 11:02
5F:→ Hurricaneger: 1.最後两项disable掉,看看 02/06 11:03
6F:推 mgdesigner: 我是用fcitx,Fcitx应该是比较ok 02/06 19:48
7F:推 holishing: **Cannot find `gtk-query-immodules` for gtk 3** 02/07 01:32
8F:→ holishing: **Cannot find fcitx5 im module for gtk 3.** 02/07 01:32
9F:→ holishing: 那边要不要再检查一下? 你在这边文章丢关键字就找到在 02/07 01:32
10F:→ holishing: 哪里了 02/07 01:32