mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
16 lines
924 B
Diff
16 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);
|