[Share Experiences] 旧发行版通过flatpak安装fcitx5
Tofloor
poster avatar
青稚
deepin
2023-05-24 18:23
Author

1.首先安装flatpak

sudo apt install flatpak

1.2如果是旧版本的ubuntu推荐添加ppa(ppa的flatpak是新的)

sudo add-apt-repository ppa:flatpak/stable

添加好后sudo apt update后输入上面的安装命令

2.添加flatub 仓库

(如果加了sudo是系统级,不加sudo是用户级)

flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

2.1可选部分,需要安装fcitx5不稳定版

flatpak remote-add --user --if-not-exists fcitx5-unstable https://flatpak.fcitx-im.org/unstable-repo/fcitx5-unstable.flatpakrepo

3.开始安装

flatpak install org.fcitx.Fcitx5

如果出现用户级和系统级选择,一般选择系统级就好了

4.安装 fcitx5 输入法引擎

flatpak install org.fcitx.Fcitx5.Addon.ChineseAddons (中文)
flatpak install org.fcitx.Fcitx5.Addon.Mozc (日文)

无特殊需求安装中文就可以了

5.安装fcitx5后端

sudo apt install fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-qt5

6.配置fcitx环境变量

sudo gedit /etc/profile (gedit改成自己使用的文本编辑器,如vim,nano,xed等)

添加以下参数(建议在最底下空一格,或者三个格,这样看着整齐)

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

7.开机启动

如果有fcitx5直接添加开机启动

如果没有进入编辑启动程序(名称设置为Fcitx5)

在命令选项添加:flatpak run org.fcitx.Fcitx5

保存退出后重启

8.主题安装

下载的主题文件

放到~/.local/share/fcitx5/themes/

之后进入设置修改

9.词库安装

下载 *.dict文件, 放到~/.local/share/fcitx5/pinyin/dictionaries/

1.萌娘百科

https://github.com/outloudvi/mw2fcitx/releases

2.维基百科

https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/

10.Bug解决

IntelliJ 系列软件的 IDE 中输入框位置不正确

此问题的根本原因是 IDE 附带的 JBR 不正确,要处理此问题,需要:

1.前往 https://github.com/RikudouPatrickstar/JetBrainsRuntime-for-Linux-x64/releases 下载 jbr 并解压到任意路径

2.按照 此指导 更改 IDE 的 JBR

1.ctrl+shift+A , 输入 Choose Boot Java Runtime for the IDE

2.选择Add Custom Runtime option

3.选择解压出的文件夹

11.参考链接

Bug解决

参考:https://ouyen.github.io/fcitx5-ubuntu/

安装fcitx5

参考:https://fcitx-im.org/wiki/Install_Fcitx_5/zh-cn

参考:https://plumz.me/archives/12285/

Reply Favorite View the author
All Replies
阿尼樱奈奈
deepin
2023-05-24 18:24
#1

like

Reply View the author
大威天龙
deepin
2023-05-24 18:56
#2

tail

v23b自带 v20.9好像也不用这么麻烦,源里好像就有?为什么要用flatpak装

Reply View the author
青稚
deepin
2023-05-24 21:43
#3
大威天龙

tail

v23b自带 v20.9好像也不用这么麻烦,源里好像就有?为什么要用flatpak装

这个教程不局限于deepin(注意审标题)

Reply View the author
大威天龙
deepin
2023-05-24 23:38
#4
青稚

这个教程不局限于deepin(注意审标题)

😂说的对!

Reply View the author