also looking at this
fix(app): a fresh install now either works or says why
#8
16 files
+512
-75
| @@ -16,9 +16,17 @@ import { dirname, join } from 'node:path' | ||
| 16 | 16 | import process from 'node:process' |
| 17 | 17 | import { format } from 'node:util' |
| 18 | 18 | import pkg from '../../package.json' |
| 19 | import { agentPath } from '../Uplink/agent-path' | |
| 19 | 20 | import { acquireSingleInstance, startDesktopAgent } from '../Uplink/desktop-agent' |
| 20 | 21 | import { LOG_PATH } from '../Uplink/settings' |
| 21 | 22 | |
| 23 | // Launched from Finder or from its own LaunchAgent, this process gets the bare | |
| 24 | // launchd PATH, and everything below it inherits that: the engines, their | |
| 25 | // probes, and osascript. Widen it once, here, before anything spawns. Without | |
| 26 | // this a `claude` installed by bun, npm or nvm is invisible to the app on a Mac | |
| 27 | // where it works in a terminal. | |
| 28 | process.env.PATH = agentPath() | |
| 29 | ||
| 22 | 30 | // Launched from Finder or at login there is no terminal, so keep a log where |
| 23 | 31 | // Console.app looks for one. |
| 24 | 32 | if (!process.stdout.isTTY) { |