Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge remote-tracking branch 'origin/GP-1-dragonmacher-help-headless-fix'

Ryan Kurtz75ddd08bbd0f
diff --cc Ghidra/Framework/Help/src/main/java/help/GHelpBuilder.java
index 2767f3cf23,b3cfea430b..9ea3447e66
--- a/Ghidra/Framework/Help/src/main/java/help/GHelpBuilder.java
+++ b/Ghidra/Framework/Help/src/main/java/help/GHelpBuilder.java
@@@ -21,8 -21,7 +21,8 @@@ import java.nio.file.Path
import java.nio.file.Paths;
import java.util.*;
+import generic.application.GenericApplicationLayout;
- import generic.theme.ApplicationThemeManager;
+ import generic.theme.HeadlessThemeManager;
import ghidra.framework.Application;
import ghidra.framework.ApplicationConfiguration;
import help.validator.*;
@@@ -70,16 -69,14 +70,15 @@@ public class GHelpBuilder
ApplicationConfiguration config = new ApplicationConfiguration() {
@Override
protected void initializeApplication() {
- ApplicationThemeManager.initialize();
- }
-
- @Override
- public boolean isHeadless() {
- return false;
+ //
+ // We must be headless, as we are utility class. But, we also need theme properties
+ // to be loaded and correct for the help system to function properly.
+ //
+ HeadlessThemeManager.initialize();
}
};
- Application.initializeApplication(new HelpApplicationLayout("Help Builder", "0.1"), config);
+ Application.initializeApplication(new GenericApplicationLayout("Help Builder", "0.1"),
+ config);
builder.build(args);
}