GP-0: Fixing user settings location in dev mode for LaunchSupport and

PyGhidra
This commit is contained in:
Ryan Kurtz
2025-11-19 09:41:32 -05:00
parent 6d36df6eca
commit c32ead3c69
2 changed files with 9 additions and 2 deletions

View File

@@ -396,7 +396,10 @@ public class AppConfig {
String userSettingsDirName = appName + "_" + applicationVersion + "_" +
applicationReleaseName.replaceAll("\\s", "").toUpperCase();
if (isDev) {
userSettingsDirName += "_location_" + installDir.getParentFile().getName();
String dirName = new File(installDir, "ghidra.repos.config").isFile()
? installDir.getParentFile().getName()
: installDir.getName();
userSettingsDirName += "_location_" + dirName;
}
// Ensure there is a user home directory (there definitely should be)