1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-16 07:23:14 +00:00

1. Fixed Powershell 32/64 bit issue

2. Updated GC referencing
This commit is contained in:
Bryan Roe
2021-03-15 18:01:03 -07:00
parent b9867f7d69
commit 9653072a4f
6 changed files with 68 additions and 44 deletions

View File

@@ -193,7 +193,7 @@ function linux_messageBox()
value: (function ()
{
var child = require('child_process').execFile('/bin/sh', ['sh']);
child.stdout.str = ''; child.stdout.on('data', function (chunk) { this.str += chunk.toString(); });
child.stdout.str = ''; child.stdout.on('data', stdparser);
child.stdin.write("whereis zenity | awk '{ print $2 }'\nexit\n");
child.waitExit();
var location = child.stdout.str.trim();
@@ -201,6 +201,7 @@ function linux_messageBox()
if (location == '') { return (null); }
var ret = { path: location, timeout: child.stdout.str.trim() == '' ? false : true };
child = null;
Object.defineProperty(ret, "timeout", {
get: function ()
{