1.下载

git clone https://github.com/lyfeyaj/sublime-text-imfix.git

2.进行一些处理

cd ~/sublime-text-imfix
sudo cp ./lib/libsublime-imfix.so /opt/sublime_text/
sudo cp ./src/subl /usr/bin/

这样每次都要输入subl才能打开,很不友好。

对Desktop文件进行改造,可以完美解决中文输入。

原来的

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document; [Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity; [Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;

改造后的

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=bash -c "LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text %F"
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document; [Desktop Action Window]
Name=New Window
Exec=bash -c "LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text -n"
OnlyShowIn=Unity; [Desktop Action Document]
Name=New File
Exec=bash -c "LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text --command new_file"
OnlyShowIn=Unity;

最新文章

  1. jeesite部署到Tomcat后,无法访问,cannot be resolved in either web.xml or the jar files deployed with this application
  2. android-studio设置代理
  3. PHPCMS 多站点管理切换问题
  4. NeHe OpenGL教程 第九课:移动图像
  5. SDUT1586 计算组合数(组合数)
  6. cocos2d-x 资源路径研究
  7. SQL Server 2000的安全配置
  8. jquery ajax 后台响应成功,返回正确json但不执行success方法,执行error的问题
  9. memcached在linux安装
  10. "V租房"搭建微信租房平台,让租房人发起求租需求并接收合适房源回复,提高租房效率 | 36氪
  11. Android - JNI静态(static)载入OpenCV
  12. SSH-Struts(两)—调节器(ActionServlet)
  13. expressJS - 准备活动
  14. docker容器的安装与使用
  15. 【ASP.NET Core】EF Core - “影子属性”
  16. ES6之Promise对象
  17. springcloud常见问题处理
  18. Matlab 调用Oracle数据库
  19. Django基础学习七之如何配置django+mysql
  20. centos6.6 下安装mysql5.7

热门文章

  1. android悬浮窗口的一些说明
  2. Codevs 1021 玛丽卡==洛谷 P1186
  3. mongodb的入门CURD
  4. android 完美退出应用程序。
  5. Codeforces 848B Rooter's Song(分类+模拟)
  6. Struts2的标签三大类是什么?
  7. 关于RPi.GPIO、BCM2835 c library、WiringPi、Gertboard
  8. ZJGSU-ACM OJ 心得
  9. excel 分类汇总函数
  10. push代码到github时,每次都要输入用户名和密码的问题