diff --git a/build.gradle b/build.gradle index 02dc94e44..5a254d46c 100644 --- a/build.gradle +++ b/build.gradle @@ -145,8 +145,8 @@ project.ext { "-Dvisualvm.display.name=XPipe", "-Djavafx.preloader=io.xpipe.app.core.AppPreloader" ] - // Disable this for now as it requires Windows 10+ - if (!org.gradle.internal.os.OperatingSystem.current().isWindows()) { + // Disable this on Windows for now as it requires Windows 10+ + if (org.gradle.internal.os.OperatingSystem.current().isLinux() || org.gradle.internal.os.OperatingSystem.current().isMacOsX()) { jvmRunArgs += ['-XX:+UseZGC'] } if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) { diff --git a/core/src/main/java/io/xpipe/core/process/OsType.java b/core/src/main/java/io/xpipe/core/process/OsType.java index 0f11c601b..8b943fca7 100644 --- a/core/src/main/java/io/xpipe/core/process/OsType.java +++ b/core/src/main/java/io/xpipe/core/process/OsType.java @@ -21,10 +21,8 @@ public interface OsType { return MACOS; } else if (osName.contains("win")) { return WINDOWS; - } else if (osName.contains("nux")) { - return LINUX; } else { - throw new UnsupportedOperationException("Unknown operating system"); + return LINUX; } }