File Fix-restart-opening-electron-default-app.patch of Package code

Add execPath to app.relaunch call and point it to our wrapper script, because otherwise the default app (about box) is launched instead.

--- a/src/vs/platform/lifecycle/electron-main/lifecycleMainService.ts	2022-03-29 17:21:16.000000000 +0200
+++ b/src/vs/platform/lifecycle/electron-main/lifecycleMainService.ts	2022-03-31 19:24:21.497621351 +0200
@@ -595,7 +595,7 @@
 		const quitListener = () => {
 			if (!this.relaunchHandler?.handleRelaunch(options)) {
 				this.trace('Lifecycle#relaunch() - calling app.relaunch()');
-				app.relaunch({ args });
+				app.relaunch({ args, execPath: 'XXXLIBEXECDIRXXX/code-oss.js'})
 			}
 		};
 		app.once('quit', quitListener);

openSUSE Build Service is sponsored by