JAL-3631 Fixed a getdown Exception when launching Jalview in windows
authorBen Soares <b.soares@dundee.ac.uk>
Fri, 28 Jun 2024 11:04:50 +0000 (12:04 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Fri, 28 Jun 2024 11:04:50 +0000 (12:04 +0100)
getdown/lib/getdown-core.jar
getdown/lib/getdown-launcher-local.jar
getdown/lib/getdown-launcher.jar
getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java
j11lib/getdown-core.jar
j8lib/getdown-core.jar

index 9752434..295fe85 100644 (file)
Binary files a/getdown/lib/getdown-core.jar and b/getdown/lib/getdown-core.jar differ
index f148969..94a803b 100644 (file)
Binary files a/getdown/lib/getdown-launcher-local.jar and b/getdown/lib/getdown-launcher-local.jar differ
index 614de25..c50beb1 100644 (file)
Binary files a/getdown/lib/getdown-launcher.jar and b/getdown/lib/getdown-launcher.jar differ
index 2eef995..0342f70 100644 (file)
@@ -373,9 +373,6 @@ public final class EnvConfig {
         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;
     }
@@ -417,11 +414,11 @@ public final class EnvConfig {
     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");
     }
 }
index 9752434..295fe85 100644 (file)
Binary files a/j11lib/getdown-core.jar and b/j11lib/getdown-core.jar differ
index 9752434..295fe85 100644 (file)
Binary files a/j8lib/getdown-core.jar and b/j8lib/getdown-core.jar differ