Call the local process the local engine on Linux and macOS

The Windows launcher already avoids the word "server" in what users read, and
the macOS health probe now uses curl --noproxy so starting offline cannot stall
on a system proxy. The app windows also ignore proxies, which only ever point
at 127.0.0.1.
This commit is contained in:
2026-12-01 12:31:10 +00:00
parent b271037c54
commit 2d3b3bb665
5 changed files with 19 additions and 15 deletions
+9 -5
View File
@@ -49,8 +49,10 @@ state_pid() {
sed -n 's/.*"pid"[[:space:]]*:[[:space:]]*\([0-9][0-9]*\).*/\1/p' "$STATE" | head -1
}
# --noproxy forces a direct connection: offline, curl would otherwise resolve
# the system proxy/PAC first and every health probe would fail.
healthy() {
curl -fs -m 2 "http://127.0.0.1:$1/api/health" >/dev/null 2>&1
curl -fs -m 2 --noproxy '*' "http://127.0.0.1:$1/api/health" >/dev/null 2>&1
}
# Ask node rather than nc: the bundle always has one, and nc's flags differ
@@ -75,12 +77,14 @@ open_window() {
open -na "Google Chrome" --args \
--app="$url" \
--user-data-dir="$DATA/window-profile-chrome" \
--window-size=1500,950 --no-first-run --no-default-browser-check
--window-size=1500,950 --no-first-run --no-default-browser-check \
--no-proxy-server
elif [ -d "/Applications/Microsoft Edge.app" ] || [ -d "$HOME/Applications/Microsoft Edge.app" ]; then
open -na "Microsoft Edge" --args \
--app="$url" \
--user-data-dir="$DATA/window-profile-edge" \
--window-size=1500,950 --no-first-run --no-default-browser-check
--window-size=1500,950 --no-first-run --no-default-browser-check \
--no-proxy-server
else
open "$url"
fi
@@ -162,7 +166,7 @@ start() {
if ! kill -0 "$pid" 2>/dev/null; then
rm -f "$STATE"
tail_logs
dialog "Luminary's server stopped while starting. Log: $LOGS/server.err.log"
dialog "Luminary's local engine stopped while starting. Log: $LOGS/server.err.log"
exit 1
fi
sleep 0.5
@@ -232,7 +236,7 @@ Luminary.app launcher
No argument starts the app (or reuses a running copy) and opens the window.
--browser open a normal browser tab instead of a Chrome/Edge app window
--stop stop the server this bundle started
--stop stop the local engine this bundle started
--status print version, pid, port, health and the data directory
--verify check that the bundle is complete