File code.sh.patch of Package code

--- vscode-1.85.0/resources/linux/bin/code.sh.old	2023-12-06 11:36:56.000000000 +0100
+++ vscode-1.85.0/resources/linux/bin/code.sh	2023-12-14 19:41:32.409719726 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
 #
 # Copyright (c) Microsoft Corporation. All rights reserved.
 # Licensed under the MIT License. See License.txt in the project root for license information.
@@ -44,20 +44,9 @@ 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 command -v 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/@@APPNAME@@"
-	fi
-fi
+VSCODE_PATH='XXXLIBDIRXXX/code'
 
-ELECTRON="$VSCODE_PATH/@@APPNAME@@"
+ELECTRON=electron
-CLI="$VSCODE_PATH/resources/app/out/cli.js"
+CLI="$VSCODE_PATH/out/cli.js"
 ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
 exit $?
openSUSE Build Service is sponsored by