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:
File diff suppressed because one or more lines are too long
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user