sublime text 3 切换项目后 再输入中文会崩溃
Tofloor
poster avatar
ginnerpeace
deepin
2017-12-26 00:52
Author
本帖最后由 ginnerpeace 于 2017-12-25 16:57 编辑

在深度商店里安装的sublime,看出来已经做了输入法修复,/usr/bin/sublime-text-dev文件内容:
  1. #!/bin/bash

  2. # Please note that Sublime Text 3 for some reason opens an empty instance
  3. # if the project you're trying to open is already open in another instance,
  4. # instead of just giving it focus.

  5. SUBLIME_HOME=/opt/sublime_text_3
  6. LD_LIB="${SUBLIME_HOME}/libsublime-imfix.so"
  7. BIN="${SUBLIME_HOME}/sublime_text"

  8. PID=$(pidof -o %PPID ${BIN} 2>/dev/null)
  9. ARGS="--class=sublime-text-dev"

  10. if [[ ${1:(-16)} == ".sublime-project" ]]; then
  11.     ARGS="${ARGS} --project"
  12. fi

  13. if [[ -n ${PID} ]]; then
  14.     LD_PRELOAD=${LD_LIB} ${BIN} ${ARGS} "$@"
  15. else
  16.     LD_PRELOAD=${LD_LIB} ${BIN} ${ARGS} "$@" &
  17. fi
Copy the Code



命令行运行sublime-text-dev,使用很流畅。

但是如果在桌面或者dock中打开后有问题:在切换项目之后,搜狗输入法键入中文时,sublime会直接崩溃掉。

原谅我截不出图。。。不知道为什么截屏只能截取到每次切换项目的时候。大家可以试一试,我觉得是能够重现的。



  1. $ apt policy sublime-text-dev
  2. sublime-text-dev:
  3.     已安装:3.0.0+b3143-3
  4.     候选: 3.0.0+b3143-3
  5.     版本列表:
  6. *** 3.0.0+b3143-3 500
  7.         500 http://packages.deepin.com/deepin panda/non-free amd64 Packages
Copy the Code



Reply Favorite View the author
All Replies

No replies yet