Open wszqkzqk opened 8 months ago
另一种方案是往包管理器里添加hook,从而在更新包之后自动执行这个patch Exec的命令。
比如说我用的是Arch的pacman,我就可以往/etc/pacman.d/hooks/fcitx-patch-for-wps.hook
写入以下内容:
[Trigger]
Operation = Upgrade
Operation = Install
Type = Package
Target = wps-office-cn
[Action]
Description = Fix fcitx not working in WPS
When = PostTransaction
Exec = sed -i -E -e 's/Exec ?= ?/Exec=env XMODIFIERS="@im=fcitx" GTK_IM_MODULE="fcitx" QT_IM_MODULE="fcitx" SDL_IM_MODULE=fcitx /g' /usr/share/applications/wps-office*.desktop
@Young-Lord 另一种方案是往包管理器里添加hook,从而在更新包之后自动执行这个patch Exec的命令。 比如说我用的是Arch的pacman,我就可以往
/etc/pacman.d/hooks/fcitx-patch-for-wps.hook
写入以下内容:[Trigger] Operation = Upgrade Operation = Install Type = Package Target = wps-office-cn [Action] Description = Fix fcitx not working in WPS When = PostTransaction Exec = sed -i -E -e 's/Exec ?= ?/Exec=env XMODIFIERS="@im=fcitx" GTK_IM_MODULE="fcitx" QT_IM_MODULE="fcitx" SDL_IM_MODULE=fcitx /g' /usr/share/applications/wps-office*.desktop
感谢补充
https://wszqkzqk.github.io/2024/03/09/WPS-Fcitx5/
天下难事,必作于易;天下大事,必作于细