Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zackelia committed Nov 16, 2020
1 parent ef54722 commit 4fdc315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,23 @@
version_path = f".ghidra-{version}"

ghidra_home_path = os.path.join(Path.home(), ".ghidra", version_path)
perferences_path = os.path.join(ghidra_home_path, "preferences")
preferences_path = os.path.join(ghidra_home_path, "preferences")
code_browser_path = os.path.join(ghidra_home_path, "tools", "_code_browser.tcd")
code_browser_bak_path = os.path.join(ghidra_home_path, "tools", "_code_browser.tcd.bak")

print(f"Using Ghidra home path: {ghidra_home_path}")

# Check if the current L&f is system
using_system = False
with open(perferences_path, "r") as fp:
with open(preferences_path, "r") as fp:
for line in fp:
if "LastLookAndFeel=System" in line:
using_system = True
break

# Set the L&f to system
if not using_system:
with open(perferences_path, "a") as fp:
with open(preferences_path, "a") as fp:
fp.write("LastLookAndFeel=System\n")

# Backup the current tcd
Expand Down

0 comments on commit 4fdc315

Please sign in to comment.