@intuned/runtime-dev 1.1.6-vnc.5 → 1.1.6-vnc.7
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,6 +273,10 @@ async function startVncServer() {
|
|
|
273
273
|
console.error("Error cleaning up VNC locks:", error);
|
|
274
274
|
}
|
|
275
275
|
console.log("Starting VNC server...");
|
|
276
|
+
if (!(await fs.exists("/root/.Xauthority"))) {
|
|
277
|
+
console.log("Creating .Xauthority file");
|
|
278
|
+
await fs.writeFile("/root/.Xauthority", "");
|
|
279
|
+
}
|
|
276
280
|
console.log("Setting up vnc startup script");
|
|
277
281
|
const vncStartupScript = `openbox &
|
|
278
282
|
devilspie &
|
|
@@ -292,7 +296,7 @@ exec xclock -digital -update 0 -bg black`;
|
|
|
292
296
|
}
|
|
293
297
|
if (vncServerProcess.exitCode !== null) {
|
|
294
298
|
console.error("VNC server process exited unexpectedly");
|
|
295
|
-
|
|
299
|
+
break;
|
|
296
300
|
}
|
|
297
301
|
console.log("VNC server not ready yet, waiting...");
|
|
298
302
|
await (0, _promises.setTimeout)(1000);
|