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

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 &
@@ -282,7 +286,7 @@ exec xclock -digital -update 0 -bg black`;
282
286
  mode: 0o755
283
287
  });
284
288
  console.log("Spawning vncserver");
285
- const vncServerProcess = (0, _child_process.spawn)("vncserver", [":99", "-localhost", "yes", "-rfbauth", "/root/vnc/passwd", "-rfbport", "5900", "-geometry", "1280x720"]);
289
+ const vncServerProcess = (0, _child_process.spawn)("vncserver", [":99", "-localhost", "yes", "-rfbauth", "/root/.vnc/passwd", "-rfbport", "5900", "-geometry", "1280x720"]);
286
290
  listenToProcess(vncServerProcess, "vncserver");
287
291
  processes.push(vncServerProcess);
288
292
  console.log("Waiting for VNC server to start...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.1.6-vnc.6",
3
+ "version": "1.1.6-vnc.8",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",