@intuned/runtime-dev 1.1.6-vnc.4 → 1.1.6-vnc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -273,30 +273,11 @@ async function startVncServer() {
273
273
  console.error("Error cleaning up VNC locks:", error);
274
274
  }
275
275
  console.log("Starting VNC server...");
276
- console.log("Spawning openbox");
277
- const noDisplayEnv = {
278
- ...process.env,
279
- DISPLAY: null
280
- };
281
- const openboxProcess = (0, _child_process.spawn)("openbox", {
282
- env: noDisplayEnv
283
- });
284
- listenToProcess(openboxProcess, "openbox");
285
- processes.push(openboxProcess);
286
- console.log("Spawning devilspie");
287
- const devilspieProcess = (0, _child_process.spawn)("devilspie", {
288
- env: noDisplayEnv
289
- });
290
- listenToProcess(devilspieProcess, "devilspie");
291
- processes.push(devilspieProcess);
292
- console.log("Spawning xsetroot");
293
- const xSetRootProcess = (0, _child_process.spawn)("xsetroot", ["-solid", "#000000"], {
294
- env: noDisplayEnv
295
- });
296
- listenToProcess(xSetRootProcess, "xsetroot");
297
- processes.push(xSetRootProcess);
298
276
  console.log("Setting up vnc startup script");
299
- const vncStartupScript = "exec xclock -digital -update 0 -bg black";
277
+ const vncStartupScript = `openbox &
278
+ devilspie &
279
+ xsetroot -solid black &
280
+ exec xclock -digital -update 0 -bg black`;
300
281
  await fs.writeFile("/tmp/vnc_startup.sh", vncStartupScript, {
301
282
  mode: 0o755
302
283
  });
@@ -309,6 +290,10 @@ async function startVncServer() {
309
290
  if (await fs.exists("/tmp/.X11-unix/X99")) {
310
291
  break;
311
292
  }
293
+ if (vncServerProcess.exitCode !== null) {
294
+ console.error("VNC server process exited unexpectedly");
295
+ break;
296
+ }
312
297
  console.log("VNC server not ready yet, waiting...");
313
298
  await (0, _promises.setTimeout)(1000);
314
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.1.6-vnc.4",
3
+ "version": "1.1.6-vnc.6",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",