appDataPath = osAppDataPathMap.get("other");
append = appdirname.toLowerCase(Locale.ROOT);
}
- if (!"/".equals(FS)) {
- appDataPath = appDataPath.replaceAll("/", FS);
- }
String returnString = home + FS + appDataPath + FS + append + FS + "app";
return returnString;
}
private static final Map<String,String> osAppDataPathMap;
static {
- // paths from user.home with application folder added to end. '/' replaced with file.separator
+ // paths from user.home with application folder added to end.
osAppDataPathMap = new HashMap<>();
osAppDataPathMap.put("macos", "Library/Application Support/Jalview-Desktop");
osAppDataPathMap.put("linux", ".local/share/jalview-desktop");
- osAppDataPathMap.put("windows", "AppData/Local/Jalview-Desktop");
+ osAppDataPathMap.put("windows", "AppData\\Local\\Jalview-Desktop");
osAppDataPathMap.put("other", ".jalview-desktop");
}
}