mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-18 17:23:16 +00:00
Updated workaround for Old Linux message-box, so that it supports cancelation
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -368,6 +368,7 @@ function linux_messageBox()
|
|||||||
var uname = require('user-sessions').getUsername(uid);
|
var uname = require('user-sessions').getUsername(uid);
|
||||||
this.promise._ch = require('child_process').execFile('/bin/sh', ['sh'], { type: require('child_process').SpawnTypes.TERM });
|
this.promise._ch = require('child_process').execFile('/bin/sh', ['sh'], { type: require('child_process').SpawnTypes.TERM });
|
||||||
this.promise._ch.promise = this.promise;
|
this.promise._ch.promise = this.promise;
|
||||||
|
this.promise.child = this.promise._ch;
|
||||||
this.promise._ch.stderr.str = ''; this.promise._ch.stderr.on('data', function (c) { this.str += c.toString(); });
|
this.promise._ch.stderr.str = ''; this.promise._ch.stderr.on('data', function (c) { this.str += c.toString(); });
|
||||||
this.promise._ch.stdout.str = ''; this.promise._ch.stdout.on('data', function (c)
|
this.promise._ch.stdout.str = ''; this.promise._ch.stdout.on('data', function (c)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user