-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistency across ghidra application settings paths (portability) #7505
Comments
I don't really see any bugs here regarding inconsistency, but would something like |
I hope so ^^ |
What would get you to an "I know so?" I ask because I don't want to potentially implement something that won't actually address the problem you are having. You are just trying to prevent Ghidra from using any files outside of its installation directory, correct? |
Oh right, I can't know ahead of time that everything is gonna work and that it will solve all my problems.
Yes, portability. So in the end you can copy / paste ghidra directory anywhere and it should work just fine. |
We could potentially make that support relative paths from the root of the installation, but currently Ghidra requires at least Java 1.8 to be on the PATH or on JAVA_HOME, so Ghidra can run enough Java to find a supported JDK (21, currently). |
Is this doable to rewrite? You mean these? ghidra/Ghidra/RuntimeScripts/Linux/support/launch.sh Lines 129 to 135 in a8f446f
ghidra/Ghidra/RuntimeScripts/Windows/support/launch.bat Lines 116 to 122 in a8f446f
|
Yea, code would have to be added to those 2 files to parse the launch.properties file, get that override value, and use it. Definitely doable, but doing anything in a batch file is super annoying. That's why most of the logic is offloaded to the |
However, if instead of using that property, it instead just looked inside of say, |
Seems like a good solution to not touch any batch files :D |
Yes, I think that's a good idea. I will bring this up to the team next week. It should be trivial to implement. |
Is your feature request related to a problem? Please describe.
Ghidra is not consistent when it comes to application settings path. Lets take a look at
application.settingsdir
that you can declare inlaunch.properties
file andapplication.version
that you declare inapplication.properties
.ghidra/Ghidra/RuntimeScripts/Common/support/launch.properties
Lines 86 to 97 in 4247ae7
ghidra/Ghidra/application.properties
Line 2 in 4247ae7
Given my username
buk
:Example 1:
Example 2:
Result:
settingsdir
path (hard to know what will be final path)application.version
(setting that comes from totally different file which also requires changing when your trying to make the installation portable)Extra:
Describe the solution you'd like
Consistent way that allows for portability.
The text was updated successfully, but these errors were encountered: