Linux Mint18.3 uses the terminal sudo command to start the gedit editor and cannot enter Chinese

if you do not add the sudo command, you can enter Chinese if the terminal starts gedit directly, and it is the same with gedit to start Wechat with sudo. You cannot enter Chinese

Mar.01,2021

the reason is that the root application cannot interact with the dbus/fcitx output method of the user application in the user session.
there is a solution . I wonder if I can solve your problem

.

reference:

https://askubuntu.com/questio.

Menu