We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b824a commit ede3227Copy full SHA for ede3227
extensions/espanso/src/lib/espanso.ts
@@ -1,5 +1,5 @@
1
import { getPreferenceValues } from "@raycast/api";
2
-import { cpus } from "os";
+import { arch } from "os";
3
import { exec } from "child_process";
4
5
function execAsync(command: string): Promise<{ stdout: string; stderr: string }> {
@@ -19,7 +19,7 @@ export async function espanso(args: string) {
19
20
const espansoPath: string = preferences.espansoPath?.length
21
? preferences.espansoPath
22
- : cpus()[0].model.includes("Apple")
+ : arch() === "arm64"
23
? "/opt/homebrew/bin/espanso"
24
: "/usr/local/bin/espanso";
25
0 commit comments