summarylogtreecommitdiffstats
path: root/startup_script.patch
diff options
context:
space:
mode:
Diffstat (limited to 'startup_script.patch')
-rw-r--r--startup_script.patch23
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"