Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# sublime_zh_patch
----
A patch of [Sublime Text 3] for supporting chinese input with Fcitx

Installation
----
sudo ./setup.sh
2 changes: 1 addition & 1 deletion subl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
exec sh -c 'LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text' %F
sh -c "LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text \"$@\""
6 changes: 3 additions & 3 deletions sublime_text.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=sh -c 'LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text' %F
Exec=sh -c 'LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text "%F"'
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Expand All @@ -14,10 +14,10 @@ Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=sh -c 'LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text' -n
Exec=sh -c 'LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text -n'
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=sh -c 'LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text' --command new_file
Exec=sh -c 'LD_PRELOAD=/opt/sublime_text/sublime_zh/libsublime_imfix.so /opt/sublime_text/sublime_text --command new_file'
OnlyShowIn=Unity;