Skip to content

Instantly share code, notes, and snippets.

@nstarke
Last active January 17, 2026 03:47
Show Gist options
  • Select an option

  • Save nstarke/baa031e0cab64a608c9bd77d73c50fc6 to your computer and use it in GitHub Desktop.

Select an option

Save nstarke/baa031e0cab64a608c9bd77d73c50fc6 to your computer and use it in GitHub Desktop.
Resize Ghidra GUI for High DPI screens

Resize Ghidra for High DPI screens

If you run Ghidra on a high DPI screen, you will probably find the GUI to be scaled down so small to be almost of no use.

There is a setting that you can adjust to scale the Ghidra GUI:

in $GHIDRA_ROOT/support is a file named launch.properties. In this launch.properties file is the following configuration key:

VMARGS_LINUX=-Dsun.java2d.uiScale=1

Change this line to:

VMARGS_LINUX=-Dsun.java2d.uiScale=2

Then launch ghidra and you should be good to go!

@tkanarsky
Copy link

you're the best tysm

@ClosedPort22
Copy link

How do I make the change on a Ubuntu system with a snap ghidra? The /snap/ filesystem is read-only.

Not familiar with Snap, but I think it should be possible to run $GHIDRA_ROOT/support/launch.sh bg jdk Ghidra "" "-Dsun.java2d.uiScale=2" ghidra.GhidraRun directly. This works for me on Arch Linux.

The command is taken from $GHIDRA_ROOT/ghidraRun which is just a wrapper for launch.sh. launch.sh accepts extra vmargs via CLI but ghidraRun doesn't expose this to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment