Skip to main content

Crate re_ghidra_agy_hook

Crate re_ghidra_agy_hook 

Source
Expand description

re-ghidra-agy-hook — the plugin’s PreInvocation preflight.

The four ways this plugin fails to start are all environmental: no GHIDRA_INSTALL_DIR, a directory that is not actually a Ghidra root, a JDK older than 21, and an unconfigured project. Without this hook each of them surfaces only on the first tool call, as an error from inside a JVM that never booted.

Two rules govern what it may do:

  1. Silent when healthy. It runs on every session start, so a clean environment must produce no output at all. Anything else is noise the user reads once and then learns to ignore.
  2. Never blocks. It always exits 0. A preflight that can stop a session is worse than the problem it reports — the user may not even intend to touch Ghidra this session.

Functions§

detect_java_major 🔒
extract_project_dir 🔒
launcher_exists 🔒
main 🔒
overlay_env 🔒