diff --git a/launcher/src/se/llbit/chunky/launcher/ChunkyLauncher.java b/launcher/src/se/llbit/chunky/launcher/ChunkyLauncher.java index 91cff87ade..1d444279ba 100644 --- a/launcher/src/se/llbit/chunky/launcher/ChunkyLauncher.java +++ b/launcher/src/se/llbit/chunky/launcher/ChunkyLauncher.java @@ -58,7 +58,7 @@ */ public class ChunkyLauncher { - public static final String LAUNCHER_VERSION = "v1.12.0"; + public static final String LAUNCHER_VERSION = "v1.12.1"; /** * Print a launch error message to the console. diff --git a/launcher/src/se/llbit/chunky/launcher/JavaFxLocator.java b/launcher/src/se/llbit/chunky/launcher/JavaFxLocator.java index a3393dec45..0883810c1c 100644 --- a/launcher/src/se/llbit/chunky/launcher/JavaFxLocator.java +++ b/launcher/src/se/llbit/chunky/launcher/JavaFxLocator.java @@ -61,7 +61,8 @@ private static void runWithJavafx(Path javafxDir, String[] args) { cmd.add("--javaOptions"); StringBuilder javaOptions = new StringBuilder(); javaOptions.append("--module-path "); - javaOptions.append(javafxDir.toAbsolutePath().toString()); + // Escape the path twice to make the second launcher pass the options to Chunky retaining the double speechmarks (fixes paths with spaces) + javaOptions.append("\\\"" + javafxDir.toAbsolutePath().toString() + "\\\""); javaOptions.append(" --add-modules "); javaOptions.append("javafx.controls,javafx.fxml"); cmd.add(javaOptions.toString());