diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/Architecture.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/Architecture.java index 3d2a719dd..46c2c22bc 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/Architecture.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/Architecture.java @@ -194,7 +194,7 @@ public enum Architecture { } } else { try { - Process process = Runtime.getRuntime().exec("/usr/bin/arch"); + Process process = Runtime.getRuntime().exec(new String[]{"/bin/uname", "-m"}); if (process.waitFor(3, TimeUnit.SECONDS)) { try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream(), OperatingSystem.NATIVE_CHARSET))) { sysArchName = reader.readLine().trim();