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:
@@ -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);
|
||||
})()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user