diff --git a/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java b/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java index 0a378b19..001502ca 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java +++ b/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java @@ -177,7 +177,7 @@ public void start(boolean pipeOutput) throws IOException, InterruptedException { var env = processBuilder.environment(); // https://github.com/Admicos/minecraft-wayland/issues/55 env.put("__GL_THREADED_OPTIMIZATIONS", "0"); - if(params.lwjglGlfwWayland) { + if(params.lwjglGlfwWayland && !params.profile.hasFlag(ClientProfile.CompatibilityFlags.WAYLAND_USE_CUSTOM_GLFW)) { env.remove("DISPLAY"); // No X11 } }