From 2d3b3bb66594fec14ec10ebaa66d73e471cbd0e8 Mon Sep 17 00:00:00 2001 From: Brian Hursey Date: Tue, 1 Dec 2026 12:31:10 +0000 Subject: [PATCH] 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. --- linux/build.mjs | 2 +- linux/launcher/luminary | 6 +++--- macos/README-macos.txt | 10 +++++----- macos/launcher/Stop Luminary.command | 2 +- macos/launcher/launcher.sh | 14 +++++++++----- 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/linux/build.mjs b/linux/build.mjs index dbb3321..d668f88 100644 --- a/linux/build.mjs +++ b/linux/build.mjs @@ -441,7 +441,7 @@ Updating: stop Luminary, replace app/ and runtime/ from a newer bundle, start again. The data folder is outside the bundle and is untouched. Notes - - The server listens on 127.0.0.1 only. Set HOST=0.0.0.0 when starting it + - The local engine listens on 127.0.0.1 only. Set HOST=0.0.0.0 when starting it directly with node if client proofing galleries must reach other devices. - The app window is the browser's own app mode with a private profile, so it has no tabs or address bar. Some Wayland desktops ignore the requested diff --git a/linux/launcher/luminary b/linux/launcher/luminary index 57b3607..2fa8419 100755 --- a/linux/launcher/luminary +++ b/linux/launcher/luminary @@ -1,13 +1,13 @@ #!/usr/bin/env bash # Luminary desktop launcher for Linux. # -# Starts the bundled server in single-user desktop mode on a free loopback port, +# Starts the bundled local engine in single-user desktop mode on a free loopback port, # waits for /api/health, then opens the UI in a chromeless app window (Chrome, # Chromium, Edge, Brave or Vivaldi). Firefox, or the default browser, is the # fallback. # # ./luminary start and open the window -# ./luminary --stop stop the running server +# ./luminary --stop stop the running local engine # ./luminary --status report pid, URL, data folder and health # ./luminary --browser open a normal browser tab instead # ./luminary --verify check that this is a complete bundle @@ -167,7 +167,7 @@ start() { pid="$(cat "$PID_FILE" 2>/dev/null)" if ! wait_health "$port"; then - problem "the server did not answer on /api/health." + problem "the local engine did not answer on /api/health." problem "See $LOG_DIR/server.err.log, or run: cd \"$APP\" && \"$NODE\" server/index.mjs" return 1 fi diff --git a/macos/README-macos.txt b/macos/README-macos.txt index b42523a..e5bff56 100644 --- a/macos/README-macos.txt +++ b/macos/README-macos.txt @@ -26,9 +26,9 @@ What it needs and no administrator password are needed for day-to-day use. Start, stop and status - Opening Luminary starts the local server and opens the editor. Opening it + Opening Luminary starts the local engine and opens the editor. Opening it again reuses the running copy instead of starting a second one. - - Stop Luminary.command (next to the app in the disk image) stops the server. + - Stop Luminary.command (next to the app in the disk image) stops it. - The same commands are available from a terminal: /Applications/Luminary.app/Contents/Resources/launcher.sh --status /Applications/Luminary.app/Contents/Resources/launcher.sh --stop @@ -46,13 +46,13 @@ Logs ~/Library/Application Support/Luminary/data/logs/server.err.log Updating - Quit the server (Stop Luminary.command), drag the new Luminary.app over the + Stop the local engine (Stop Luminary.command), drag the new Luminary.app over the old one, and start it again. The data folder is outside the app and is not touched. The catalog migrates itself on first start. Notes - - The server listens on 127.0.0.1 only. For proofing galleries that other - devices should reach, run the server yourself with HOST=0.0.0.0. + - The local engine listens on 127.0.0.1 only. For proofing galleries that + other devices should reach, run it yourself with HOST=0.0.0.0. - The app window is Chrome or Edge in app mode, using its own profile in the data folder, so it does not mix with your normal browsing. Set LUMINARY_WINDOW=browser to open a normal tab instead. diff --git a/macos/launcher/Stop Luminary.command b/macos/launcher/Stop Luminary.command index 7664c26..57d1023 100644 --- a/macos/launcher/Stop Luminary.command +++ b/macos/launcher/Stop Luminary.command @@ -1,5 +1,5 @@ #!/bin/bash -# Stop the Luminary server started by Luminary.app. +# Stop the Luminary local engine started by Luminary.app. # Double-clicking a .command file opens Terminal for as long as this runs. set -u diff --git a/macos/launcher/launcher.sh b/macos/launcher/launcher.sh index 6bc9e36..8ec6f69 100644 --- a/macos/launcher/launcher.sh +++ b/macos/launcher/launcher.sh @@ -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