1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 13:53:37 +00:00

Fixed issue with Zenity on FreeBSD

This commit is contained in:
Bryan Roe
2022-08-12 16:54:41 -07:00
parent fe80432ac6
commit 9d3f353ef5
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -191,6 +191,7 @@ function linux_messageBox()
child.stdin.write("whereis zenity | awk '{ print $2 }'\nexit\n");
child.waitExit();
var location = child.stdout.str.trim();
if (location.split('/man/').length > 1) { location = ''; }
if (location == '' && require('fs').existsSync('/usr/local/bin/zenity')) { location = '/usr/local/bin/zenity'; }
if (location == '') { return (null); }