10

ubuntu22.04安装 Fcitx5输入法,并解决 chrome启用wayland后无法输入中文问题。

 1 year ago
source link: https://blog.p2hp.com/archives/11752
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

一。chrome启用wayland:

地址栏输入:chrome://flags/ ,搜索Preferred Ozone platform,把Preferred Ozone platform,设置为wayland.

二。安装Fcitx5输入法.

sudo apt-get install fcitx5 fcitx5-frontend-gtk4 fcitx5-frontend-qt5 fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-pinyin fcitx5-chinese-addons fcitx5-chewing fcitx5-module-lua fcitx5-module-lua-common fcitx5-modules unicode-cldr-core

三。安装中文词库

GitHub 打开维基百科中文拼音词库的 Releases 界面,下载最新版的 .dict 文件。按照 README 的指导,将其复制到 ~/.local/share/fcitx5/pinyin/dictionaries/ 文件夹下即可。

im-config
export XMODIFIERS=@im=fcitx5
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5

九。解决 chrome中无法输入中文问题。

sudo vim /usr/share/applications/google-chrome.desktop
将其中 的Exec=/usr/bin/google-chrome-stable %U 改为
Exec=/usr/bin/google-chrome-stable %U --gtk-version=4
重新启动chrome即可输入了。
其它2个位置
Exec=/usr/bin/google-chrome-stable --gtk-version=4
Exec=/usr/bin/google-chrome-stable --incognito --gtk-version=4

参考 :https://zhuanlan.zhihu.com/p/508797663?utm_id=0

单行双行模式与emoji支持参考:

https://www.cnblogs.com/maicss/p/15056420.html

10.问题

目录发现少数一些如qt应用程序无法输入中文:

包括vlc,gimp等.不过不多.

暂时还无法解决.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK