}
}
- if (!dockIcon)
+ if (!dockIcon && isAMac)
{
command.add("-Xdock:icon=" + dockIconPath);
// -Xdock:name=... doesn't actually work :(
try
{
builder.inheritIO();
- builder.start();
+ Process process = builder.start();
+ process.waitFor();
} catch (Exception e)
{
e.printStackTrace();