File fix-exe-path.patch of Package code

--- a/src/vs/platform/native/electron-main/nativeHostMainService.ts	2022-02-09 22:24:27.000000000 +0100
+++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts	2022-03-02 13:19:36.000761913 +0100
@@ -552,11 +552,7 @@
 
 		// Linux
 		if (isLinux) {
-			if (this.environmentMainService.isBuilt) {
-				return join(dirname(process.execPath), 'bin', `${this.productService.applicationName}`);
-			}
-
-			return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh');
+			return ('/usr/bin/code')
 		}
 
 		// macOS
--- a/src/vs/code/node/cli.ts	2022-03-02 03:35:20.000000000 +0100
+++ b/src/vs/code/node/cli.ts	2022-03-05 16:02:16.812006077 +0100
@@ -365,7 +365,7 @@
 			}
 
 			// We spawn process.execPath directly
-			child = spawn(process.execPath, argv.slice(2), options);
+			child = spawn('XXXLIBEXECDIRXXX/code-oss.mjs', argv.slice(2), options)
 		} else {
 			// On Big Sur, we spawn using the open command to obtain behavior
 			// similar to if the app was launched from the dock
openSUSE Build Service is sponsored by