1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 23:33:38 +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:
Bryan Roe
2019-08-22 10:52:21 -07:00
parent b0545c070d
commit b78545514e
2 changed files with 13 additions and 7 deletions

View File

@@ -153,7 +153,14 @@ function linux_messageBox()
child.stdin.write(location + ' --version | awk -F. \'{ printf "[%s, %s]\\n", $1, $2; } \'\nexit\n');
child.waitExit();
ret.version = JSON.parse(child.stdout.str.trim());
try
{
ret.version = JSON.parse(child.stdout.str.trim());
}
catch(e)
{
ret.version = [2, 16];
}
return (ret);
})()
});