From c85915954c62cf6c7d546d96c1d9d92bcda206c1 Mon Sep 17 00:00:00 2001 From: ghidraffe <108089404+ghidraffe@users.noreply.github.com> Date: Thu, 22 May 2025 14:23:50 +0000 Subject: [PATCH] GP-5699 fix GhidraGo in dev mode --- .../GhidraGo/src/main/java/ghidra/GhidraGo.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ghidra/Features/GhidraGo/src/main/java/ghidra/GhidraGo.java b/Ghidra/Features/GhidraGo/src/main/java/ghidra/GhidraGo.java index f5ece5f695..123625f230 100644 --- a/Ghidra/Features/GhidraGo/src/main/java/ghidra/GhidraGo.java +++ b/Ghidra/Features/GhidraGo/src/main/java/ghidra/GhidraGo.java @@ -149,25 +149,25 @@ public class GhidraGo implements GhidraLaunchable { * @throws IOException in the event that the execution failed */ private Process startGhidra(GhidraApplicationLayout layout) throws IOException { - ResourceFile file = layout.getApplicationInstallationDir(); + ResourceFile file = layout.getApplicationRootDirs().stream().findFirst().get(); Path ghidraRunPath; if (SystemUtilities.isInDevelopmentMode()) { if (Platform.CURRENT_PLATFORM.getOperatingSystem() == OperatingSystem.WINDOWS) { ghidraRunPath = Path.of(file.getAbsolutePath(), - "/ghidra/Ghidra/RuntimeScripts/Windows/ghidraRun.bat"); + "/RuntimeScripts/Windows/ghidraRun.bat"); } else { ghidraRunPath = Path.of(file.getAbsolutePath(), - "/ghidra/Ghidra/RuntimeScripts/Linux/ghidraRun"); + "/RuntimeScripts/Linux/ghidraRun"); } } else { if (Platform.CURRENT_PLATFORM.getOperatingSystem() == OperatingSystem.WINDOWS) { - ghidraRunPath = Path.of(file.getAbsolutePath(), "/ghidraRun.bat"); + ghidraRunPath = Path.of(file.getAbsolutePath(), "/../ghidraRun.bat"); } else { - ghidraRunPath = Path.of(file.getAbsolutePath(), "/ghidraRun"); + ghidraRunPath = Path.of(file.getAbsolutePath(), "/../ghidraRun"); } }