Arch Linux 解决wine系应用无法输入中文的问题(如tim、wps)

前言

我的系统是:Arch Linux + i3wm。

解决方法

如果你的输入法是 fcitx ,在fcitx的启动文件中加入以下代码就行了:

export XMODIFIERS="@im=fcitx"

export GTK_IM_MODULE="fcitx"

export QT_IM_MODULE="fcitx"

已解决应用:deepin-tim(deepin.com.qq.office)、wps

如何找到对应的启动文件呢?

方法一

进入目录 /usr/share/applications/,找到你想要修改的应用程序对应的 .desktop 文件(以tim举例,就是找到 deepin.com.qq.office.desktop 文件)。

查看文件,其中 Exec 一行就是文件位置。比如tim:Exec="/opt/deepinwine/apps/Deepin-TIM/run.sh" -u %u,那么启动文件就是:/opt/deepinwine/apps/Deepin-TIM/run.sh,修改它就行了。

方法二(如果你的文件管理器是 pcmancf)

打开 pcmancf,进入 Applications 那一栏,找到对应的应用程序图标,右击查看属性。Desktop Entrycommand 那一栏就有启动文件的位置。

posted @ 2020-04-06 12:31  树下躲雨要撑伞  阅读(1147)  评论(0编辑  收藏  举报