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

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.
@@ -251,7 +251,7 @@ async function startVncServer() {
251
251
  console.log(`[${name} ]${data}`);
252
252
  });
253
253
  process.stderr?.on("data", data => {
254
- console.error(`[${process.pid}-E]${data}`);
254
+ console.error(`[${name}-E]${data}`);
255
255
  });
256
256
  process.on("error", error => {
257
257
  console.error(`${name} error: ${error}`);
@@ -274,15 +274,25 @@ async function startVncServer() {
274
274
  }
275
275
  console.log("Starting VNC server...");
276
276
  console.log("Spawning openbox");
277
- const openboxProcess = (0, _child_process.spawn)("openbox");
277
+ const noDisplayEnv = {
278
+ ...process.env,
279
+ DISPLAY: null
280
+ };
281
+ const openboxProcess = (0, _child_process.spawn)("openbox", {
282
+ env: noDisplayEnv
283
+ });
278
284
  listenToProcess(openboxProcess, "openbox");
279
285
  processes.push(openboxProcess);
280
286
  console.log("Spawning devilspie");
281
- const devilspieProcess = (0, _child_process.spawn)("devilspie");
287
+ const devilspieProcess = (0, _child_process.spawn)("devilspie", {
288
+ env: noDisplayEnv
289
+ });
282
290
  listenToProcess(devilspieProcess, "devilspie");
283
291
  processes.push(devilspieProcess);
284
292
  console.log("Spawning xsetroot");
285
- const xSetRootProcess = (0, _child_process.spawn)("xsetroot", ["-solid", "#000000"]);
293
+ const xSetRootProcess = (0, _child_process.spawn)("xsetroot", ["-solid", "#000000"], {
294
+ env: noDisplayEnv
295
+ });
286
296
  listenToProcess(xSetRootProcess, "xsetroot");
287
297
  processes.push(xSetRootProcess);
288
298
  console.log("Setting up vnc startup script");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.1.6-vnc.3",
3
+ "version": "1.1.6-vnc.4",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",