Skip to content

template: fix category and binary name prompts ignoring the answer - #3075

Merged
ivan-hc merged 1 commit into
ivan-hc:mainfrom
sagarrsharmaa:fix/template-read-prompts
Nov 25, 2026
Merged

ivan-hc merged 1 commit into
ivan-hc:mainfrom
sagarrsharmaa:fix/template-read-prompts

Conversation

@sagarrsharmaa

@sagarrsharmaa sagarrsharmaa commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Two prompts in am -t / appman -t ignore what you type:

  • CHOOSE A CATEGORY (options 2 and 3): every generated launcher gets Categories=Utility, whatever number you pick. This step also shows "NAME OF THE APP" again instead of the category question.
  • Set a binary name (option 1, AppImage on-the-fly): the name you enter is never applied, so the script keeps "$APP".

_read_e doesn't take arguments: it prints $prompt and puts the answer in $results. Commit 21a7b3b changed three read -r -p "..." VAR lines to _read_e "..." VAR, and 294e41d already fixed one of them (the template-type prompt) by switching it to _read_rep. These are the other two, with the same one-word change.

How I tested it: ran appman -t in a throwaway Debian container with scripted answers (-t only writes the script file, nothing gets installed).

  • Option 2, category 3 → Categories=Development; (was Utility)
  • Option 1, binary name mybin → sh -s -- ./* mybin (was "$APP")
  • Leaving both blank still gives the defaults (Utility and "$APP").
  • With the change reverted the old behaviour comes back. bash -n is fine, shellcheck reports nothing new, and regress/test-am-template-similar.sh passes.

_read_e takes no arguments: it prints whatever is in $prompt and stores
the answer in $results. Commit 21a7b3b turned three "read -r -p" calls
into "_read_e PROMPT VAR", which shows the previous prompt and never
sets VAR. 294e41d fixed the template-type prompt by switching it to
_read_rep; the category prompt and the binary name prompt (AppImages
built on-the-fly) were still on _read_e.

Because of that, every script made with "am -t" got Categories=Utility
whatever category you picked, a custom binary name was never applied,
and the category step showed "NAME OF THE APP" again instead of
"CHOOSE A CATEGORY". Use _read_rep for both, like 294e41d did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivan-hc
ivan-hc merged commit 14c2694 into ivan-hc:main Nov 25, 2026
@ivan-hc

ivan-hc commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thanks, and welcome on board @sagarrsharmaa

@sagarrsharmaa

Copy link
Copy Markdown
Contributor Author

thanks @ivan-hc ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants