Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
15 lines
924 B
Diff
15 lines
924 B
Diff
diff --git a/Ghidra/Framework/Utility/src/main/java/utility/application/ApplicationUtilities.java b/Ghidra/Framework/Utility/src/main/java/utility/application/ApplicationUtilities.java
|
|
index ea12a661f0..da7779b07f 100644
|
|
--- a/Ghidra/Framework/Utility/src/main/java/utility/application/ApplicationUtilities.java
|
|
+++ b/Ghidra/Framework/Utility/src/main/java/utility/application/ApplicationUtilities.java
|
|
@@ -36,6 +36,10 @@ public class ApplicationUtilities {
|
|
*/
|
|
public static Collection<ResourceFile> findDefaultApplicationRootDirs() {
|
|
Collection<ResourceFile> applicationRootDirs = new ArrayList<>();
|
|
+ String nixGhidraHome = System.getenv("NIX_GHIDRAHOME");
|
|
+ if (nixGhidraHome != null) {
|
|
+ applicationRootDirs.add(new ResourceFile(nixGhidraHome));
|
|
+ };
|
|
ResourceFile applicationRootDir = findPrimaryApplicationRootDir();
|
|
if (applicationRootDir != null) {
|
|
applicationRootDirs.add(applicationRootDir);
|