[arch-commits] Commit in code/trunk (startup_script.patch)
Filipe Laíns
ffy00 at archlinux.org
Mon Sep 10 15:12:14 UTC 2018
Date: Monday, September 10, 2018 @ 15:12:13
Author: ffy00
Revision: 379217
add missing script :/
Added:
code/trunk/startup_script.patch
----------------------+
startup_script.patch | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
Added: startup_script.patch
===================================================================
--- startup_script.patch (rev 0)
+++ startup_script.patch 2018-09-10 15:12:13 UTC (rev 379217)
@@ -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"
+
+ ELECTRON="$VSCODE_PATH/code-oss"
+ CLI="$VSCODE_PATH/reources/app/out/cli.js"
More information about the arch-commits
mailing list