0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

参考文献

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?