File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22#! /usr/bin/env bash
3- # SPDX-License-Identifier: MPL-2.0
3+ # SPDX-License-Identifier: PMPL-1.0-or-later
44# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
55#
66# @a2ml-metadata begin
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
@@ -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]
245255Type=Application
246256Version=1.0
247257Name=$APP_DISPLAY
248258GenericName=$APP_GENERIC_NAME
249259Comment=$APP_DESC
250- Exec=$LAUNCHER_TARGET --start
260+ Exec=$keepopen " $APP_DISPLAY " " $REPO_DIR " " $gui_cmd " " $tui_cmd " " $LOG_FILE "
251261Icon=$icon_name
252- Terminal=false
262+ Terminal=true
253263Categories=$APP_CATEGORIES
254264StartupNotify=true
255265StartupWMClass=$APP_NAME
You can’t perform that action at this time.
0 commit comments