Skip to content

Fix AutoHotkey script handling in setup_nettts_prefix.sh#70

Merged
h4rm0n1c merged 1 commit intomainfrom
codex/fix-file-not-found-error-for-setup-script
Jan 23, 2026
Merged

Fix AutoHotkey script handling in setup_nettts_prefix.sh#70
h4rm0n1c merged 1 commit intomainfrom
codex/fix-file-not-found-error-for-setup-script

Conversation

@h4rm0n1c
Copy link
Copy Markdown
Owner

Motivation

  • The prefix setup oneliner can fail when flextalk_autoinst.ahk is not present next to the helper script, producing errors like "Script File not found: Z:\home...\flextalk_autoinst.ahk".
  • Provide a fallback so the setup helper works when fetched remotely (e.g., via the README oneliner).

Description

  • Added DEFAULT_AHK_URL and a --ahk-url option and wired them into the helper selection logic via AHK_URL.
  • When flextalk_autoinst.ahk is not found next to the helper, the script now downloads it into $TMPDIR using download_payload and uses the downloaded copy.
  • Normalized AHK_SCRIPT_PATH with realpath before converting to a Wine path and invoking AutoHotkey.
  • Updated the usage text to document the new --ahk-url override.

Testing

  • No automated tests were executed for this change.

Codex Task

@h4rm0n1c h4rm0n1c merged commit 9d8612d into main Jan 23, 2026
1 check passed
@h4rm0n1c h4rm0n1c deleted the codex/fix-file-not-found-error-for-setup-script branch January 23, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant