惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

Sublime on 轻风云

暂无文章

解决linux下sublime3无法中文输入
2019-02-15 · via Sublime on 轻风云

1.先下载文件,下载后将后缀改为.c 点我下载

  1. 安装 C/C++ 的编译环境和 gtk libgtk2.0-dev
1
2
# apt-get install build-essential
# apt-get install libgtk2.0-dev
  1. 编译共享内库
1
# gcc -shared -o libsublime-imfix.so sublime-imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC
  1. 设置 LD_PRELOAD 并启动 Sublime Text
1
# LD_PRELOAD=./libsublime-imfix.so subl
  1. 修改 /usr/share/applications/sublime_text.desktop
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[Desktop Entry]
    [...]
    Exec=env LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so /opt/sublime_text/sublime_text %F
    [...]
    
    [Desktop Action Window]
    [...]
    Exec=env LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so /opt/sublime_text/sublime_text -n
    [...]
    
    [Desktop Action Document]
    [...]
    Exec=env LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so /opt/sublime_text/sublime_text --command new_file
    [...]

不要忘了把 libsublime-imfix.so 放到 /opt/sublime_text/ 中

  1. 修改 /usr/bin/subl
1
2
export LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so
    exec /opt/sublime_text/sublime_text "$@"

重启电脑,可以看到Sublime能够输入中文了。