First, download the files we need, open the terminal, enter:
git clone https://github.com/lyfeyaj/sublime-text-imfix.git
Two, willsublmove to/usr/bin/, and willsublime-imfix.somove to/opt/sublime_text/(Sublime's installation directory)
CD ~/sublime-text-imfixsudocp ./lib/libsublime-imfix.so/opt/sublime_text/sudo CP ./src/subl/usr/bin/
Third, use the command to try tosublstart sublime, if successful start, you should be able to input Chinese.
Four, but this way can only be started with the above command line to enter Chinese, we need a simpler way, I choose to create a new shell script, very simple, just a word.
#!/bin/bashld_preload=/opt/sublime_text/libsublime-imfix.so Subl
Then save the file assublime(note: no suffix) and put it in the/homefolder. At this point, all the work is done. To start, direct terminal input:bash ~/sublime, you can start sublime, and can input Chinese.
Ubuntu Rookie Primer (18) ———— fix Ubuntu under sublime Text 3 cannot input Chinese