diff options
author | Michael Hansen | 2017-04-11 11:03:17 -0700 |
---|---|---|
committer | Michael Hansen | 2017-04-11 11:03:17 -0700 |
commit | f56846373f5b785c8f1e32e7cc2da8ecdb5c7a8c (patch) | |
tree | 05abe5e6af2ddb32be8396c2d747edc50a7b7ee2 /startup_script.patch | |
parent | fcc9e34ecb05510567952a40f1b8bec384f6b9d9 (diff) | |
download | aur-f56846373f5b785c8f1e32e7cc2da8ecdb5c7a8c.tar.gz |
Install to "preferred" system path instead of /opt
Diffstat (limited to 'startup_script.patch')
-rw-r--r-- | startup_script.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/startup_script.patch b/startup_script.patch new file mode 100644 index 000000000000..a88aee3b27c6 --- /dev/null +++ b/startup_script.patch @@ -0,0 +1,23 @@ +diff -rupN a/bin/code-oss b/bin/code-oss +--- a/bin/code-oss 2017-04-10 14:45:30.501186879 -0700 ++++ b/bin/code-oss 2017-04-11 09:02:09.934505159 -0700 +@@ -17,18 +17,7 @@ if [ "$(id -u)" = "0" ]; then + fi + fi + +-if [ ! -L $0 ]; then +- # if path is not a symlink, find relatively +- VSCODE_PATH="$(dirname $0)/.." +-else +- if which readlink >/dev/null; then +- # if readlink exists, follow the symlink and find relatively +- VSCODE_PATH="$(dirname $(readlink -f $0))/.." +- else +- # else use the standard install location +- VSCODE_PATH="/usr/share/code-oss" +- fi +-fi ++VSCODE_PATH="/usr/share/code-oss" + + ELECTRON="$VSCODE_PATH/code-oss" + CLI="$VSCODE_PATH/resources/app/out/cli.js" |