LoginSignup
0
0

More than 5 years have passed since last update.

LinuxのVNC上でAtom Editorを起動する方法

Posted at

このスクリプトを使う

if [ "$(uname -s)" = "Linux" ]; then
  which_atom=$(which atom || true)
  if [ -n "$which_atom" ]; then
    atom() (
      to_lib_dir="$HOME/.local/atom-hack/lib"
      mkdir -p "$to_lib_dir"
      for from_lib_dir in /usr/lib /usr/lib64 /lib /lib64; do
        if [ ! -d "$from_lib_dir" ]; then
          continue
        fi
        find $from_lib_dir -name "libxcb.so*" | while read -r p; do
          f=$(basename "$p")
          sed -e 's/BIG-REQUESTS/_IG-REQUESTS/' "$p" > "$to_lib_dir/$f.tmp"
          if ! cmp "$to_lib_dir/$f.tmp" "$to_lib_dir/$f"; then
            cp -f "$to_lib_dir/$f.tmp" "$to_lib_dir/$f"
          fi
        done
      done
      export LD_LIBRARY_PATH=$(echo $to_lib_dir:$LD_LIBRARY_PATH | sed -e 's/:$//')
      exec "$which_atom" --disable-gpu "$@"
    )
  fi
fi

参考文献
- http://riku.wp.xdomain.jp/2017/03/01/ubuntu%E3%81%AB%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%E3%81%A7%E6%8E%A5%E7%B6%9A%E4%B8%AD%E3%81%ABatom-editor%E3%81%8C%E8%B5%B7%E5%8B%95%E3%81%97%E3%81%AA%E3%81%84%E5%95%8F%E9%A1%8C/
- https://www.ainoniwa.net/pelican/2016/0828a.html
- https://github.com/Microsoft/vscode/issues/3451

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0