Closed videni closed 1 year ago
这个问题只在通过snap安装的vscode发生,解决方法,直接安装vscode官网的。
我认为,有两个可能的原因,snap 版本的 VSCode 没有集成 fcitx 的 GTK 输入法模块,或者 snap 的某些机制(比如沙盒)阻止了输入法模块与外面的输入法的通信
可以先查一下这个进程加载的lib,里边有没有fcitx的插件
我认为,有两个可能的原因,snap 版本的 VSCode 没有集成 fcitx 的 GTK 输入法模块,或者 snap 的某些机制(比如沙盒)阻止了输入法模块与外面的输入法的通信
请问一下有办法在沙箱环境中使用输入法吗,比如运行这条命令
firejail firefox
此时在firefox中就无法唤起输入法了,还有通过lxd运行的GUI应用也同样无法使用
@wakaka6 firejail 的默认规则阻止了 dbus 通信(通过 uds)
😓裂开了,nixos用户,升级22.02版本,不知道是VS CODE版本升级还是输入法版本升级,vscode调不起来输入法了,解决不了。这怎么玩,linux依赖问题解决不了就算了,现在升个级输入法也没了,干活的机器输入法用不了,我擦
😓裂开了,nixos用户,升级22.02版本,不知道是VS CODE版本升级还是输入法版本升级,vscode调不起来输入法了,解决不了。这怎么玩,linux依赖问题解决不了就算了,现在升个级输入法也没了,干活的机器输入法用不了,我擦
Nix 相关的话可以来 Nix 中文群问 https://matrix.to/#/#nixos_zhcn:matrix.org 或者 https://t.me/nixos_zhcn
供参考:我在 hyprland 下使用 code 能唤起输入法,但是选字无法上屏。但是使用 code-insiders (1.78),加上 --enable-wayland-ime
后就可以使用 fcitx5 + rime 了。
ps:昨天刚安装 code-insiders 时明明也不行来着,今天重新开机之后忽然可以了。
供参考:我在 hyprland 下使用 code 能唤起输入法,但是选字无法上屏。但是使用 code-insiders (1.78),加上
--enable-wayland-ime
后就可以使用 fcitx5 + rime 了。ps:昨天刚安装 code-insiders 时明明也不行来着,今天重新开机之后忽然可以了。
我在hyrland下使用code 添加参数提示找不到enable-wayland-ime 的警告,是不是这个还有什么依赖或者是插件要先安装呢大佬
供参考:我在 hyprland 下使用 code 能唤起输入法,但是选字无法上屏。但是使用 code-insiders (1.78),加上
--enable-wayland-ime
后就可以使用 fcitx5 + rime 了。 ps:昨天刚安装 code-insiders 时明明也不行来着,今天重新开机之后忽然可以了。我在hyrland下使用code 添加参数提示找不到enable-wayland-ime 的警告,是不是这个还有什么依赖或者是插件要先安装呢大佬
这个不需要管它 可以参考archwiki qq怎么启动的
我通过微软源安装code,我的vscode依然无法使用fcitx输入法 I installed code through Microsoft source, and my vscode still can't use the fcitx input method 😫😫
我通过微软源安装code,我的vscode依然无法使用fcitx输入法 I installed code through Microsoft source, and my vscode still can't use the fcitx input method 😫😫
我解决了,由于环境变量配置不当导致 这是修复后的环境变量:
/etc/environment
XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
/etc/profile
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
实际对vscode起作用的是第1个配置文件
参考fcitx安装
供参考:我在 hyprland 下使用 code 能唤起输入法,但是选字无法上屏。但是使用 code-insiders (1.78),加上
--enable-wayland-ime
后就可以使用 fcitx5 + rime 了。ps:昨天刚安装 code-insiders 时明明也不行来着,今天重新开机之后忽然可以了。
是的,因为通过code唤起,vscode使用xwayland,而不是原生wayland运行
Describe the bug
无法在vscode中唤起输入法
To Reproduce 无
Expected behavior 无论是用鼠标切换输入法为汉语,还是通过快捷键,都无法唤起输入法。但在其它软件中可以,比如飞书,Microsoft edge.
Desktop (please complete the following information):