Sublime-text with Sogou

  1. compile shared library libsublime-imfix.so. [code]

    gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config –libs –cflags gtk+-2.0` -fPIC

  2. edit /usr/bin/subl, add the following line to top:

    export LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so

  3. use subl as normal.

References:
1. https://www.sublimetext.com/forum/viewtopic.php?f=3&t=7006&sid=97c5927742ff154ffa746c74101892ba&start=10#p41343
2. https://www.sublimetext.com/forum/viewtopic.php?f=3&t=7006&start=20#p61143
3. http://m.oschina.net/blog/151457
4. http://www.v2ex.com/t/131338

你可能感兴趣的:(gcc)