diff --git a/src/main/java/link/infra/jumploader/ConfigFile.java b/src/main/java/link/infra/jumploader/ConfigFile.java index a6bcb6b..10cc770 100644 --- a/src/main/java/link/infra/jumploader/ConfigFile.java +++ b/src/main/java/link/infra/jumploader/ConfigFile.java @@ -28,6 +28,8 @@ public class ConfigFile { public boolean forceFallbackStorage = false; // Don't update configuration if the side to be downloaded is not the same as the current side public boolean overrideInferredSide = false; + // Disable the user interface - temporary fix for crashes on Linux! + public boolean disableUI = false; public LaunchOptions launch = new LaunchOptions(); public JarOptions jars = new JarOptions(); public AutoconfOptions autoconfig = new AutoconfOptions(); diff --git a/src/main/java/link/infra/jumploader/Jumploader.java b/src/main/java/link/infra/jumploader/Jumploader.java index 1e17deb..f18b4e7 100644 --- a/src/main/java/link/infra/jumploader/Jumploader.java +++ b/src/main/java/link/infra/jumploader/Jumploader.java @@ -229,7 +229,7 @@ private List resolveJars(ConfigFile config, ParsedArguments argsParsed) { lwjglAvailable = true; } catch (ClassNotFoundException ignored) {} - if (!lwjglAvailable || GraphicsEnvironment.isHeadless() || argsParsed.nogui) { + if (!lwjglAvailable || GraphicsEnvironment.isHeadless() || argsParsed.nogui || config.disableUI) { while (!workerManager.isDone()) { LOGGER.info("Progress: " + (workerManager.getWorkerProgress() * 100) + "%"); URL resolvedURL;