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:
+1
-1
@@ -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.
|
again. The data folder is outside the bundle and is untouched.
|
||||||
|
|
||||||
Notes
|
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.
|
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
|
- 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
|
has no tabs or address bar. Some Wayland desktops ignore the requested
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Luminary desktop launcher for Linux.
|
# 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,
|
# 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
|
# Chromium, Edge, Brave or Vivaldi). Firefox, or the default browser, is the
|
||||||
# fallback.
|
# fallback.
|
||||||
#
|
#
|
||||||
# ./luminary start and open the window
|
# ./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 --status report pid, URL, data folder and health
|
||||||
# ./luminary --browser open a normal browser tab instead
|
# ./luminary --browser open a normal browser tab instead
|
||||||
# ./luminary --verify check that this is a complete bundle
|
# ./luminary --verify check that this is a complete bundle
|
||||||
@@ -167,7 +167,7 @@ start() {
|
|||||||
|
|
||||||
pid="$(cat "$PID_FILE" 2>/dev/null)"
|
pid="$(cat "$PID_FILE" 2>/dev/null)"
|
||||||
if ! wait_health "$port"; then
|
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"
|
problem "See $LOG_DIR/server.err.log, or run: cd \"$APP\" && \"$NODE\" server/index.mjs"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ What it needs
|
|||||||
and no administrator password are needed for day-to-day use.
|
and no administrator password are needed for day-to-day use.
|
||||||
|
|
||||||
Start, stop and status
|
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.
|
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:
|
- The same commands are available from a terminal:
|
||||||
/Applications/Luminary.app/Contents/Resources/launcher.sh --status
|
/Applications/Luminary.app/Contents/Resources/launcher.sh --status
|
||||||
/Applications/Luminary.app/Contents/Resources/launcher.sh --stop
|
/Applications/Luminary.app/Contents/Resources/launcher.sh --stop
|
||||||
@@ -46,13 +46,13 @@ Logs
|
|||||||
~/Library/Application Support/Luminary/data/logs/server.err.log
|
~/Library/Application Support/Luminary/data/logs/server.err.log
|
||||||
|
|
||||||
Updating
|
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
|
old one, and start it again. The data folder is outside the app and is not
|
||||||
touched. The catalog migrates itself on first start.
|
touched. The catalog migrates itself on first start.
|
||||||
|
|
||||||
Notes
|
Notes
|
||||||
- The server listens on 127.0.0.1 only. For proofing galleries that other
|
- The local engine listens on 127.0.0.1 only. For proofing galleries that
|
||||||
devices should reach, run the server yourself with HOST=0.0.0.0.
|
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
|
- 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
|
data folder, so it does not mix with your normal browsing. Set
|
||||||
LUMINARY_WINDOW=browser to open a normal tab instead.
|
LUMINARY_WINDOW=browser to open a normal tab instead.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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.
|
# Double-clicking a .command file opens Terminal for as long as this runs.
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
|
|||||||
@@ -49,8 +49,10 @@ state_pid() {
|
|||||||
sed -n 's/.*"pid"[[:space:]]*:[[:space:]]*\([0-9][0-9]*\).*/\1/p' "$STATE" | head -1
|
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() {
|
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
|
# 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 \
|
open -na "Google Chrome" --args \
|
||||||
--app="$url" \
|
--app="$url" \
|
||||||
--user-data-dir="$DATA/window-profile-chrome" \
|
--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
|
elif [ -d "/Applications/Microsoft Edge.app" ] || [ -d "$HOME/Applications/Microsoft Edge.app" ]; then
|
||||||
open -na "Microsoft Edge" --args \
|
open -na "Microsoft Edge" --args \
|
||||||
--app="$url" \
|
--app="$url" \
|
||||||
--user-data-dir="$DATA/window-profile-edge" \
|
--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
|
else
|
||||||
open "$url"
|
open "$url"
|
||||||
fi
|
fi
|
||||||
@@ -162,7 +166,7 @@ start() {
|
|||||||
if ! kill -0 "$pid" 2>/dev/null; then
|
if ! kill -0 "$pid" 2>/dev/null; then
|
||||||
rm -f "$STATE"
|
rm -f "$STATE"
|
||||||
tail_logs
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
@@ -232,7 +236,7 @@ Luminary.app launcher
|
|||||||
|
|
||||||
No argument starts the app (or reuses a running copy) and opens the window.
|
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
|
--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
|
--status print version, pid, port, health and the data directory
|
||||||
--verify check that the bundle is complete
|
--verify check that the bundle is complete
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user