Really enable Ghidra's Developer plugins in both tools
A bare <PACKAGE NAME="Developer" /> only adds the package's RELEASED plugins, so half of them (the STABLE ones) were missing and Configure showed Developer unticked. The project window wasn't configured at all. - CodeBrowser: insert ghidra/codebrowser-developer.xml, which lists the STABLE plugins explicitly, into the default CodeBrowser.tool in Public_Release.jar. - Project window: it has no default config to patch, so ship ghidra/FrontEndTool.xml in the user settings with its three Developer plugins. - Pre-creating the settings dir makes Ghidra show its user agreement; ghidra/preferences sets USER_AGREEMENT=ACCEPT, the value Ghidra writes by itself on a fresh start. Verified by closing Ghidra cleanly: it rewrites FrontEndTool.xml from the loaded plugins and kept all three Developer plugins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Initial config for Ghidra's project window (front end). Ghidra overwrites
|
||||
it on exit; it is copied into the image so that every container start
|
||||
opens with the "Developer" plugin package enabled (File > Configure). -->
|
||||
<!-- VERSION must match GHIDRA_VERSION in the Dockerfile. -->
|
||||
<FRONTEND VERSION="12.2">
|
||||
<TOOL_CONFIG CONFIG_NAME="NO_LONGER_USED">
|
||||
<ICON LOCATION="view_detailed.png" />
|
||||
<TOOL TOOL_NAME="Ghidra: NO ACTIVE PROJECT" INSTANCE_NAME="">
|
||||
<OPTIONS />
|
||||
<PACKAGE NAME="Utility" />
|
||||
<PACKAGE NAME="Ghidra Core" />
|
||||
<!-- Developer plugins that may run in the project window. All are
|
||||
STABLE, not RELEASED, so each must be listed explicitly. -->
|
||||
<PACKAGE NAME="Developer">
|
||||
<INCLUDE CLASS="ghidra.app.plugin.debug.DomainFolderChangesDisplayPlugin" />
|
||||
<INCLUDE CLASS="ghidra.app.plugin.debug.GenerateOldLanguagePlugin" />
|
||||
<INCLUDE CLASS="ghidra.app.plugin.debug.JavaHelpPlugin" />
|
||||
</PACKAGE>
|
||||
<ROOT_NODE X_POS="560" Y_POS="240" WIDTH="800" HEIGHT="600" EX_STATE="0" FOCUSED_OWNER="FrontEnd Tool" FOCUSED_NAME="FrontEnd" FOCUSED_TITLE="Project Window">
|
||||
<COMPONENT_NODE TOP_INFO="0">
|
||||
<COMPONENT_INFO NAME="FrontEnd" OWNER="FrontEnd Tool" TITLE="Project Window" ACTIVE="true" GROUP="Default" />
|
||||
</COMPONENT_NODE>
|
||||
</ROOT_NODE>
|
||||
</TOOL>
|
||||
</TOOL_CONFIG>
|
||||
</FRONTEND>
|
||||
Reference in New Issue
Block a user