addSystemPropertyIfNotNull(args, "installer.logfile");
addSystemPropertyIfNotNull(args, "installer.logfile_append");
addSystemPropertyIfNotNull(args, "installer.extrainfo");
+ addSystemPropertyIfNotNull(args, "sun.jnu.encoding");
// backward compatibility (old getdown-launcher.jar)
args.add("-Dgetdownappdir=" + getAppDir());
if (setUserAppDirPath.startsWith("~" + FS)) {
setUserAppDirPath = home + setUserAppDirPath.substring(1);
}
- appDataPath = setUserAppDirPath.replaceAll("%u", System.getProperty("user.name")).replaceAll("%h", home);
+ String username = System.getProperty("user.name");
+ StringBuilder sb = new StringBuilder();
+ for (int i = 0; i < username.length(); i++) {
+ String code = Integer.toHexString(Character.codePointAt(username, i));
+ if (i > 0) {
+ sb.append("-");
+ }
+ sb.append(code);
+ }
+ String asciiname = sb.toString();
+ appDataPath = setUserAppDirPath.replaceAll("%u", username).replaceAll("%h", home).replaceAll("%U", asciiname);
addHome = false;
}
{
try
{
- Files.createDirectory(getCanonicalPath(file));
+ Files.createDirectories(getCanonicalPath(file));
return file.exists();
} catch (IOException e)
{
channel_properties_dir = utils/channels
channel_props = channel.props
-install4j_home_dir = ~/buildtools/install4j10
+install4j_home_dir = ~/buildtools/install4j11
install4j_copyright_message = ...
install4j_bundle_id = org.jalview.jalview-desktop
install4j_utils_dir = utils/install4j
install4j_images_dir = utils/install4j
-install4j_template = install4j10_template.install4j
+install4j_template = install4j11_template.install4j
install4j_info_plist_file_associations = file_associations_auto-Info_plist.xml
install4j_installer_file_associations = file_associations_auto-install4j10.xml
#install4j_DMG_uninstaller_app_files = uninstall_old_jalview_files.xml
{
try
{
- Files.createDirectory(getCanonicalPath(file));
+ Files.createDirectories(getCanonicalPath(file));
return file.exists();
} catch (IOException e)
{