summarylogtreecommitdiffstats
path: root/startup_script.patch
blob: a88aee3b27c6ef10ffb5abfe975106d14aa71337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"