How to perfect the Chinese _linux when using sublime text under Ubuntu

Source: Internet
Author: User
Tags sublime text


Recently according to use found, under the Ubuntu, installed sublime Text 3, can not use the Chinese input problem.



The system is: Ubuntu 64 bit, install Sogou Input Method Linux version



Workaround:



1. Download Shared Library



Click to download libsublime-imfix.so



2. After downloading the good library, enters the catalog execution:


Ld_preload=./libsublime-imfix.so Subl


Wait for sublime text 3 to start, you should already be able to enter the normal Chinese.



3. For ease of use, also need to do the configuration



Do not have to enter ld_preload every time you open sublime text 3, you need to modify the sublime icon link way



First copy the shared library to the system default path


sudo cp libsublime-imfix.so/usr/lib/


Open Modify Sublime configuration file


sudo vim/usr/share/applications/sublime_text.desktop


Modify Local ①
Will


Exec=/opt/sublime_text/sublime_text%F


Amended to


Exec=bash-c ' Ld_preload=/usr/lib/libsublime-imfix.so/opt/sublime_text/sublime_text '%F


Modify Local ②
Will


Exec=/opt/sublime_text/sublime_text-n


Amended to





code as follows:
Exec=bash-c ' Ld_preload=/usr/lib/libsublime-imfix.so/opt/sublime_text/sublime_text '-n





This allows you to use the shortcut to open Sublimetext 3 to support Chinese input.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.