mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +00:00
Fixed user-consent dialog for PuppyLinux
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -222,11 +222,11 @@ function linux_messageBox()
|
|||||||
// GNOME/ZENITY
|
// GNOME/ZENITY
|
||||||
if (this.zenity.timeout)
|
if (this.zenity.timeout)
|
||||||
{
|
{
|
||||||
ret.child = require('child_process').execFile(this.zenity.path, ['zenity', '--question', '--title=' + title, '--text=' + caption, '--timeout=' + timeout], { uid: uid, env: { XAUTHORITY: xinfo.xauthority, DISPLAY: xinfo.display } });
|
ret.child = require('child_process').execFile(this.zenity.path, ['zenity', '--question', '--title=' + title, '--text=' + caption, '--timeout=' + timeout], { uid: uid, env: { XAUTHORITY: xinfo.xauthority ? xinfo.xauthority : "", DISPLAY: xinfo.display } });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret.child = require('child_process').execFile(this.zenity.path, ['zenity', '--question', '--title=' + title, '--text=' + caption], { uid: uid, env: { XAUTHORITY: xinfo.xauthority, DISPLAY: xinfo.display } });
|
ret.child = require('child_process').execFile(this.zenity.path, ['zenity', '--question', '--title=' + title, '--text=' + caption], { uid: uid, env: { XAUTHORITY: xinfo.xauthority ? xinfo.xauthority : "", DISPLAY: xinfo.display } });
|
||||||
ret.child.timeout = setTimeout(function (c)
|
ret.child.timeout = setTimeout(function (c)
|
||||||
{
|
{
|
||||||
c.timeout = null;
|
c.timeout = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user