Tree
- Tree:
0c3ecd5b83d1ba13a209ec260d7a6826989e6626- Date:
- Message:
- bin/launchprogram.lua: Refactor and update launcher script. - Refactor the program launcher to align with the current aestel conventions (display, menu, colors modules) and remove no-longer-used logging machinery. - Remove dead lfs/log() plumbing. - Replace print() output with display.status_line() using colors.REVERSE, matching the pattern in setbackground.lua. Collapse the three "Launching / launched / exiting" status lines into two ("Launched X" / "Exiting <TITLE>") for parity with setbackground.lua's message rhythm. - Render the title in colors.BOLD + colors.RESET instead of the previous emoji-prefixed literal, matching the BOLD/title style in navigate.refresh_headers() and the rest of aestel's display conventions. - Convert the programs table to a typed schema: each entry is now { command = "...", type = "app" } instead of a bare string. The type field drives magenta coloring via display.color_for_type(), which is the same mechanism navigate.lua uses for directories (cyan) and files (white). This is the first use of type = "app" in the codebase; new types can be added by extending TYPE_COLORS in display.lua. - Add BINDIR constant into build_list(). - Use absolute paths for st -e commands (e.g., "$HOME/.local/bin/setbackground") rather than relying on PATH lookup. The launcher is invoked from interactive contexts where st's PATH may not include ~/.local/bin, causing user-installed scripts to silently fail to launch (exit status 1, no error visible). System binaries do not need this treatment. - Introduce a module-level TITLE constant so the launcher name lives in one place. Both the header and the "Exiting ..." status line read from TITLE, eliminating drift if the launcher is renamed. - Update requires to the renamed aestel.menu module (formerly aestel.ui) and add requires for aestel.colors and aestel.display, which the new status_line and color_for_type calls need. - Drop redundant comments that restated the code. - Add blank lines between logical sections inside build_list() and launch_program() to match the visual rhythm used in aestel/menu.lua and aestel/navigate.lua.
| LICENSE.md | commits | blame |
| Makefile | commits | blame |
| aestel/ | |
| bin/ | |
