deepin中装sublime text3关于中文输入的问题?
Tofloor
poster avatar
Prince
deepin
2015-09-10 06:07
Author
按照百度经验的方法装了又没用,找不到有个文件啊?有人成功过嘛?求指教
Reply Favorite View the author
All Replies
Prince
deepin
2015-09-10 06:10
#1
百度经验的方法不起作用啊
http://jingyan.baidu.com/article/f3ad7d0ff8731609c3345b3b.html
Reply View the author
rexlevin
deepin
2015-09-10 06:21
#2
“找不到有个文件啊”
这句话什么意思?哪个文件?/opt/sublime_text/sublime_text这个文件?
Reply View the author
stdtnt
deepin
2015-09-10 08:29
#3
我使用linuxmint,ubuntu均可以按照百度经验 输入中文,难道因为sublime在deepin下不是安装在 /opt/sublime_text下? 建议你搜索一下安装位置。
Reply View the author
Prince
deepin
2015-09-10 08:34
#4
https://bbs.deepin.org/post/32399
“找不到有个文件啊”
这句话什么意思?哪个文件?/opt/sublime_text/sublime_text这个文件? ...

/opt/sublime_text/sublime_text  这里是不是要改为/opt/sublime_text/sublime-text 啊?找到了也按照他的方法做了没用啊
Reply View the author
Prince
deepin
2015-09-10 08:35
#5
https://bbs.deepin.org/post/32399
我使用linuxmint,ubuntu均可以按照百度经验 输入中文,难道因为sublime在deepin下不是安装在 /opt/sublime ...

安装位置没错,不知道为啥还是没用啊,郁闷
Reply View the author
stdtnt
deepin
2015-09-10 08:36
#6
正好现在辞职了,暂时不工作,装个虚拟机帮你试一下,你用的是deepin 2014?我直接下载官网最新的就行?
Reply View the author
Prince
deepin
2015-09-10 08:43
#7
https://bbs.deepin.org/post/32399
正好现在辞职了,暂时不工作,装个虚拟机帮你试一下,你用的是deepin 2014?我直接下载官网最新的就行? ...

谢谢啊!

大神就是任性啊,说辞职就辞职,嘿嘿
Reply View the author
stdtnt
deepin
2015-09-10 08:48
#8
https://bbs.deepin.org/post/32399
谢谢啊!

大神就是任性啊,说辞职就辞职,嘿嘿

我也是新手,可不是大神,呵呵,deepin开始在用,后来工作需要,换成了linuxmint,还是对deepin保持关注,希望能用上。  下载有点慢。。  楼主用sublime做rails开发?
Reply View the author
Prince
deepin
2015-09-10 09:10
#9
https://bbs.deepin.org/post/32399
我也是新手,可不是大神,呵呵,deepin开始在用,后来工作需要,换成了linuxmint,还是对deepin保持关注, ...

你要是新手,我就是纯小白了,我还是大学生一枚,平时只是用来写写c++,python之类的
Reply View the author
stdtnt
deepin
2015-09-10 12:05
#10
本帖最后由 stdtnt 于 2015-9-10 04:15 编辑
https://bbs.deepin.org/post/32399
你要是新手,我就是纯小白了,我还是大学生一枚,平时只是用来写写c++,python之类的 ...

经过不懈测试,中文输入的问题解决了。
如下:

我采用ppa形式安装(可百度搜索),与官网下载的应该是一样的效果。
主要有两个文件需要修改
一、修改 /usr/bin/subl文件,内容如下:
#!/bin/sh
echo LD_PRELOAD
LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text "$@"

#注释内容,不要复制,相比较百度经验上的做法,仅仅是红色字体的地方添加一行。  但这一行在linuxmint,ubuntu上都不需要添加即可正常运行,deepin上不知道为什么就非得要添加。

二、 修改  /usr/share/applications/sublime_text.desktop 文件,内容如下:
[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 /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 /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 /opt/sublime_text/sublime_text' --command new_file
OnlyShowIn=Unity;


微云链接:   http://share.weiyun.com/703c5e565f25f5e6fd725d7fb1961e63
Reply View the author
cxbii
deepin
2015-09-10 17:32
#11
https://bbs.deepin.org/post/32399
经过不懈测试,中文输入的问题解决了。
如下:

问题已经记录,我们将会查找原因,通过系统更新解决这个问题
Reply View the author
pax
deepin
2015-10-28 02:41
#12
https://bbs.deepin.org/post/32399
经过不懈测试,中文输入的问题解决了。
如下:

sublime_test.desktop是桌面文件吧?怎么改啊?求指教
Reply View the author
cxbii
deepin
2015-10-28 19:06
#13
https://bbs.deepin.org/post/32399
sublime_test.desktop是桌面文件吧?怎么改啊?求指教

Gedit可以直接打开
Reply View the author