mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 16:23:25 +00:00
Added work around if zenity version check fails, which only happens on extremely old zenity when run as service
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -153,7 +153,14 @@ function linux_messageBox()
|
|||||||
child.stdin.write(location + ' --version | awk -F. \'{ printf "[%s, %s]\\n", $1, $2; } \'\nexit\n');
|
child.stdin.write(location + ' --version | awk -F. \'{ printf "[%s, %s]\\n", $1, $2; } \'\nexit\n');
|
||||||
child.waitExit();
|
child.waitExit();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
ret.version = JSON.parse(child.stdout.str.trim());
|
ret.version = JSON.parse(child.stdout.str.trim());
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
ret.version = [2, 16];
|
||||||
|
}
|
||||||
return (ret);
|
return (ret);
|
||||||
})()
|
})()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user