Skip to content

Commit ede3227

Browse files
committed
fix: use arch() instead of os() to get apple silicon/intel
1 parent b9b824a commit ede3227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/espanso/src/lib/espanso.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getPreferenceValues } from "@raycast/api";
2-
import { cpus } from "os";
2+
import { arch } from "os";
33
import { exec } from "child_process";
44

55
function execAsync(command: string): Promise<{ stdout: string; stderr: string }> {
@@ -19,7 +19,7 @@ export async function espanso(args: string) {
1919

2020
const espansoPath: string = preferences.espansoPath?.length
2121
? preferences.espansoPath
22-
: cpus()[0].model.includes("Apple")
22+
: arch() === "arm64"
2323
? "/opt/homebrew/bin/espanso"
2424
: "/usr/local/bin/espanso";
2525

0 commit comments

Comments
 (0)