diff --git a/durian-swt.os/src/main/java/com/diffplug/common/swt/os/OS.java b/durian-swt.os/src/main/java/com/diffplug/common/swt/os/OS.java index 7507bb45..a373beeb 100644 --- a/durian-swt.os/src/main/java/com/diffplug/common/swt/os/OS.java +++ b/durian-swt.os/src/main/java/com/diffplug/common/swt/os/OS.java @@ -133,7 +133,7 @@ private static OS calculateNative(Function systemProperty, Funct boolean isMac = os_name.contains("mac"); boolean isLinux = Arrays.asList("nix", "nux", "aix").stream().anyMatch(os_name::contains); if (isMac) { - return exec("uname", "-a").contains("_ARM64_") ? MAC_silicon : MAC_x64; + return systemProperty.apply("os.arch").equals("aarch64") ? MAC_silicon : MAC_x64; } else if (isWin) { boolean is64bit = environmentVariable.apply("ProgramFiles(x86)") != null; return is64bit ? WIN_x64 : WIN_x86;