JAL-3233 Added isAMac check for -Xdock:icon addition to Launcher command. Added a...
authorBen Soares <bsoares@dundee.ac.uk>
Fri, 26 Apr 2019 10:59:34 +0000 (11:59 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Fri, 26 Apr 2019 10:59:34 +0000 (11:59 +0100)
src/jalview/bin/Launcher.java

index b595b4f..aec3acd 100644 (file)
@@ -67,7 +67,7 @@ public class Launcher
       }
     }
 
-    if (!dockIcon)
+    if (!dockIcon && isAMac)
     {
       command.add("-Xdock:icon=" + dockIconPath);
       // -Xdock:name=... doesn't actually work :(
@@ -85,7 +85,8 @@ public class Launcher
     try
     {
       builder.inheritIO();
-      builder.start();
+      Process process = builder.start();
+      process.waitFor();
     } catch (Exception e)
     {
       e.printStackTrace();