else
{
// no which command, so check if os name looks like a mac
- boolean isMacOsx = System.getProperty("os.name").toLowerCase().indexOf("mac os") >= 0;
+ String osName = System.getProperty("os.name").toLowerCase();
+ boolean isMacOsx = osName.indexOf("mac os") >= 0
+ || osName.indexOf("darwin") >= 0;
if (isMacOsx) {
// for Mac Osx just use "open" command
_browserCommand = new String[] {"open", null};