List<String> addArgs = new ArrayList<>();
addArgs.add(appDir);
addArgs.add(appId);
+
+ List<String> removeJvmArgs = null;
+ List<String> addJvmArgs = null;
+ String macIcons = System.getProperty("installer.mac_icons");
+ // we love our Mac users, so we do nice things to preserve our application identity
+ if (LaunchUtil.isMacOS()) {
+ removeJvmArgs = new ArrayList<>();
+ addJvmArgs = new ArrayList<>();
+ if (macIcons != null) {
+ removeJvmArgs.add("-Xdock:icon=");
+ addJvmArgs.add("-Xdock:icon=" + installerAppdir + File.separator + "resource" + File.separator + macIcons );
+ }
+ removeJvmArgs.add("-Xdock:name=");
+ addJvmArgs.add("-Xdock:name=" + ( appName != null ? appName : ChannelProperties.FALLBACK_APPNAME ));
+ }
+
String startClassName = startClass == null ? null : startClass.getName();
- int exitValue = LaunchUtils.startNewJvm(javaBin, null, null, prependClasspath, null, removeClasspath, startClassName, removeArgs, addArgs, Arrays.asList(argv), true, true, false, true, false);
+ int exitValue = LaunchUtils.startNewJvm(javaBin, removeJvmArgs, addJvmArgs, prependClasspath, null, removeClasspath, startClassName, removeArgs, addArgs, Arrays.asList(argv), true, true, false, true, false);
if (exitValue == 0) {
notes.add(Note.info("Relaunching getdown succeeded. Original getdown exiting now."));
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
<packaging>pom</packaging>
- <version>1.8.3-1.4.1_FJVL</version>
+ <version>1.8.3-1.5.0_FJVL</version>
<name>getdown</name>
<description>An application installer and updater.</description>