addSystemPropertyIfNotNull(args, "installer.logfile");
addSystemPropertyIfNotNull(args, "installer.logfile_append");
addSystemPropertyIfNotNull(args, "installer.extrainfo");
- addSystemPropertyIfNotNull(args, "sun.jnu.encoding");
+ args.add("-Dsun.jnu.encoding=UTF-8");
+ args.add("-Dfile.encoding=UTF-8");
// backward compatibility (old getdown-launcher.jar)
args.add("-Dgetdownappdir=" + getAppDir());
FileUtils.mkdirs(userAppDir);
}
if (!(applicationAppDir.isDirectory() && userAppDir.isDirectory())) {
- log.warning("Parameter not a directory", "applicaitonAppDirName", applicationAppDirName, "userAppDirName", userAppDirName);
+ log.warning("Parameter not a directory", "applicationAppDirName", applicationAppDirName, "userAppDirName", userAppDirName);
return false;
}
File configFile = new File(applicationAppDir, CONFIG_FILE);
import java.util.jar.JarInputStream;
import java.util.jar.Manifest;
+import com.threerings.getdown.data.Application;
import com.threerings.getdown.util.Config;
import com.threerings.getdown.util.LaunchUtil;
import com.threerings.getdown.util.StringUtil;
import jalview.util.HttpUtils;
import jalview.util.LaunchUtils;
-import com.threerings.getdown.data.Application;
/** Configuration that comes from our "environment" (command line args, sys props, etc.). */
public final class EnvConfig {
<versionLine x="85" y="109" text="version ${compiler:sys.version}" />
</text>
</splashScreen>
- <java mainClass="com.threerings.getdown.launcher.GetdownApp" vmParameters="-Dsun.jnu.encoding=UTF-8 -Duserdefaultappdir=true -Dpopulatedefaultappdir=true -Dappid=jalview -Dinstaller.template_version=${compiler:INSTALLER_TEMPLATE_VERSION} -Dinstaller.appdir="${launcher:sys.launcherDirectory}" -Dinstaller.application_folder="${compiler:APPLICATION_FOLDER}" -Dchannel.app_name="${compiler:JALVIEW_APPLICATION_NAME}" -Dinstaller.icon="${compiler:PNG_ICON_FILE}" -Dinstaller.mac_icons="${compiler:MAC_ICONS_FILE}" -Dinstaller.logfile="~/.${compiler:LOG_FILE}" -Dinstaller.logfile_append=true" arguments=""" """>
+ <java mainClass="com.threerings.getdown.launcher.GetdownApp" vmParameters="-Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8 -Duserdefaultappdir=true -Dpopulatedefaultappdir=true -Dappid=jalview -Dinstaller.template_version=${compiler:INSTALLER_TEMPLATE_VERSION} -Dinstaller.appdir="${installer:sys.contentDir}" -Dinstaller.application_folder="${compiler:APPLICATION_FOLDER}" -Dchannel.app_name="${compiler:JALVIEW_APPLICATION_NAME}" -Dinstaller.icon="${compiler:PNG_ICON_FILE}" -Dinstaller.mac_icons="${compiler:MAC_ICONS_FILE}" -Dinstaller.logfile="~/.${compiler:LOG_FILE}" -Dinstaller.logfile_append=true" arguments=""" """>
<classPath>
<archive location="getdown-launcher.jar" failOnError="false" />
<archive location="${compiler:GETDOWN_INSTALL_DIR}/getdown-launcher.jar" failOnError="false" />