From ac8cf94444aed23dc355c9d5e0e89995fb90adb5 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Fri, 17 Apr 2026 08:56:59 +0100 Subject: [PATCH] launcher: realign against new keepopen-enabled template Regenerated from the launch-scaffolder tera template after it was updated to emit Exec lines routed through the standard keepopen.sh fallback ladder (hyperpolymath/standards#30, hyperpolymath/launch-scaffolder#1). write_linux_desktop_file() inside the regenerated launcher now produces `.desktop` files whose primary `Exec=` invokes keepopen.sh with per-app GUI/TUI commands, so future `--integ` runs drop straight onto the new standard. Co-Authored-By: Claude Opus 4.7 (1M context) --- game-server-admin-launcher.sh | 22 ++++++++++++++++------ game-server-admin.launcher.a2ml | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/game-server-admin-launcher.sh b/game-server-admin-launcher.sh index 7788001..e961178 100755 --- a/game-server-admin-launcher.sh +++ b/game-server-admin-launcher.sh @@ -17,7 +17,7 @@ # "LM-LA-LIFECYCLE-STANDARD.adoc" # "cross-platform-system-integration-modes" # ] -# standard-spec-version = "0.1.0" +# standard-spec-version = "0.2.0" # generator = "launch-scaffolder" # ) # @a2ml-metadata end @@ -44,14 +44,14 @@ APP_CATEGORIES="Game;Network;System;" APP_GENERIC_NAME="Game Server Admin" RUNTIME_KIND="process" -REPO_DIR="/var/mnt/eclipse/repos/game-server-admin" -ICON_SOURCE="/var/mnt/eclipse/repos/game-server-admin/assets/icon-256.png" +REPO_DIR="/var/mnt/eclipse/repos/fleet-ecosystem/game-server-admin" +ICON_SOURCE="/var/mnt/eclipse/repos/fleet-ecosystem/game-server-admin/assets/icon-256.png" # Absolute path back to the per-app `.launcher.a2ml` config that # produced this script. Consumed by the --integ / --disinteg arms when # the `launch-scaffolder` binary is on $PATH, so they can delegate to # the Rust implementation instead of running the shell fallback. -CONFIG_FILE="/var/mnt/eclipse/repos/game-server-admin/game-server-admin.launcher.a2ml" +CONFIG_FILE="/var/mnt/eclipse/repos/fleet-ecosystem/game-server-admin/game-server-admin.launcher.a2ml" URL="" @@ -240,6 +240,16 @@ write_linux_desktop_file() { else icon_name="package-x-generic" fi + + # keepopen.sh implements the standard fallback ladder: GUI → TUI → + # bash-at-repo-root. See launcher-standard.adoc §Fallback Ladder. + local keepopen="/var/mnt/eclipse/repos/.desktop-tools/keepopen.sh" + local gui_cmd tui_cmd +# process: GUI = start then tail log so terminal stays open; + # TUI = just tail the existing log; Shell = repo root. + gui_cmd="$LAUNCHER_TARGET --start && tail -f $LOG_FILE" + tui_cmd="tail -n 200 -f $LOG_FILE" + cat > "$target" <