ReviewOS

also looking at this

stacks/uplink

fix(app): a settings.json this build cannot read no longer loops the app

#46
Merged glennmichael123 wants to merge fix/settings-fallbacks into main
4 files +130 -22
app/Desktop/launcher.tsmodified+8-1
Changes to app/Desktop/launcher.ts
@@ -51,7 +51,14 @@ function craftRuntime(): string {
5151 return found
5252}
5353
54const agent = await startDesktopAgent({ version: pkg.version })
54// Anything thrown in here happens before the menubar exists, and launchd's
55// KeepAlive restarts a non-zero exit, so the loop would be silent: the plist
56// sets no StandardErrorPath, and the rebinding above only catches what goes
57// through `console`. Exit the same way, having said why first.
58const agent = await startDesktopAgent({ version: pkg.version }).catch((error: unknown) => {
59 console.error(`[uplink] could not start: ${error instanceof Error ? error.stack ?? error.message : String(error)}`)
60 return process.exit(1)
61})
5562console.log(`[uplink] ${pkg.version} serving the menubar on 127.0.0.1:${agent.port}`)
5663
5764// --tray-popover: Craft hangs the page under the status item on the popover