You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2024. It is now read-only.
https://fcitx-im.org/wiki/FAQ/zh-hans#.E5.9C.A8.E4.B8.80.E8.88.AC.E7.94.A8.E6.88.B7.E7.9A.84_X_.E4.B8.8B_.E8.BF.90.E8.A1.8C_Root_.E6.9D.83.E9.99.90.E7.9A.84.E7.A8.8B.E5.BA.8F
我参考此文档设置GTK_IM_MODULE=xim 和QT_IM_MODULE=xim,用sudo启动程序始终无法输入中文。
方法一:
我将这两句添加到/etc/environment里面后,sudo执行程序没法输入中文。
方法二:
创建/etc/sudoers_env,写入:
GTK_IM_MODULE=xim
QT_IM_MODULE=xim
QT4_IM_MODULE=xim
执行sudo visudo,加入以下内容:
Defaults env_keep += "XMODIFIERS"
Defaults env_file="/etc/sudoers_env"
依然没有效果。
普通用户执行可以输入中文,用sudo启动程序就无法输入中文,搞了好几天了,快崩溃了
The text was updated successfully, but these errors were encountered: