zackelia / ghidra-dark

Dark theme installer for Ghidra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_ghidra_config_path version number bug

M-Pepper opened this issue · comments

The following lines check each mapped number in the tuple individually, no? So the check will fail if any of the numbers are less than the mapped number even if the total version number is higher?

74    if tuple(map(int, (version_number.split(".")))) > (9, 0, 4):
75        version_path = f".ghidra_{version}_PUBLIC"

I am running version 10.0.2 and the installation is failing because 2 > 4.

The install is failing because it can't find my $HOME/.ghidra/.ghidra directory because it's looking for a $HOME/.ghidra/.ghidra-{version}_PUBLIC instead of $HOME/.ghidra/.ghidra_{version}_PUBLIC.

Turns out the error was due to it searching in the roots home as I have an /opt/ install! Please delete!