From d66f46f133daad2b6caf4a95368d9add5d8f3a83 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Fri, 19 Jun 2026 16:33:54 +0200 Subject: [PATCH] fix: resolve 'chain' binary on PATH (legacy 'fai' fallback) Studio's Start-hub looked for 'fai' on PATH; post-rename the entry binary is 'chain', so a fresh install failed to start the daemon. Signed-off-by: flemming-it --- lib/data/system_actions.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/data/system_actions.dart b/lib/data/system_actions.dart index 6cd8149..24598a5 100644 --- a/lib/data/system_actions.dart +++ b/lib/data/system_actions.dart @@ -242,7 +242,10 @@ class SystemActions { } final isWindows = Platform.isWindows; - final fromPath = _whichFai(isWindows ? 'fai.exe' : 'fai'); + // Post-rename the entry-point binary on PATH is `chain`; still + // accept a legacy `fai` for installs that predate the rename. + final fromPath = _whichFai(isWindows ? 'chain.exe' : 'chain') ?? + _whichFai(isWindows ? 'fai.exe' : 'fai'); if (fromPath != null) return fromPath; final home = Platform.environment[isWindows ? 'USERPROFILE' : 'HOME'];