Skip to content

Commit d2d90da

Browse files
hyperpolymathclaude
andcommitted
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). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6e9d91a commit d2d90da

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

nqc/nqc-launcher.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# "LM-LA-LIFECYCLE-STANDARD.adoc"
1818
# "cross-platform-system-integration-modes"
1919
# ]
20-
# standard-spec-version = "0.1.0"
20+
# standard-spec-version = "0.2.0"
2121
# generator = "launch-scaffolder"
2222
# )
2323
# @a2ml-metadata end
@@ -44,14 +44,14 @@ APP_CATEGORIES="Development;Database;"
4444
APP_GENERIC_NAME="NQC"
4545
RUNTIME_KIND="process"
4646

47-
REPO_DIR="/var/mnt/eclipse/repos/nextgen-databases/nqc"
48-
ICON_SOURCE="/var/mnt/eclipse/repos/nextgen-databases/nqc/assets/icon-256.png"
47+
REPO_DIR="/var/mnt/eclipse/repos/developer-ecosystem/nextgen-databases/nqc"
48+
ICON_SOURCE="/var/mnt/eclipse/repos/developer-ecosystem/nextgen-databases/nqc/assets/icon-256.png"
4949

5050
# Absolute path back to the per-app `<app>.launcher.a2ml` config that
5151
# produced this script. Consumed by the --integ / --disinteg arms when
5252
# the `launch-scaffolder` binary is on $PATH, so they can delegate to
5353
# the Rust implementation instead of running the shell fallback.
54-
CONFIG_FILE="/var/mnt/eclipse/repos/nextgen-databases/nqc/nqc.launcher.a2ml"
54+
CONFIG_FILE="/var/mnt/eclipse/repos/developer-ecosystem/nextgen-databases/nqc/nqc.launcher.a2ml"
5555

5656
URL=""
5757

@@ -240,16 +240,26 @@ write_linux_desktop_file() {
240240
else
241241
icon_name="package-x-generic"
242242
fi
243+
244+
# keepopen.sh implements the standard fallback ladder: GUI → TUI →
245+
# bash-at-repo-root. See launcher-standard.adoc §Fallback Ladder.
246+
local keepopen="/var/mnt/eclipse/repos/.desktop-tools/keepopen.sh"
247+
local gui_cmd tui_cmd
248+
# process: GUI = start then tail log so terminal stays open;
249+
# TUI = just tail the existing log; Shell = repo root.
250+
gui_cmd="$LAUNCHER_TARGET --start && tail -f $LOG_FILE"
251+
tui_cmd="tail -n 200 -f $LOG_FILE"
252+
243253
cat > "$target" <<EOF
244254
[Desktop Entry]
245255
Type=Application
246256
Version=1.0
247257
Name=$APP_DISPLAY
248258
GenericName=$APP_GENERIC_NAME
249259
Comment=$APP_DESC
250-
Exec=$LAUNCHER_TARGET --start
260+
Exec=$keepopen "$APP_DISPLAY" "$REPO_DIR" "$gui_cmd" "$tui_cmd" "$LOG_FILE"
251261
Icon=$icon_name
252-
Terminal=false
262+
Terminal=true
253263
Categories=$APP_CATEGORIES
254264
StartupNotify=true
255265
StartupWMClass=$APP_NAME

nqc/nqc.launcher.a2ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version = "1.0.0"
1616
license = "PMPL-1.0-or-later"
1717

1818
[repo]
19-
path = "/var/mnt/eclipse/repos/nextgen-databases/nqc"
19+
path = "/var/mnt/eclipse/repos/developer-ecosystem/nextgen-databases/nqc"
2020

2121
[runtime]
2222
kind = "process"

0 commit comments

Comments
 (0)