Skip to content

Instantly share code, notes, and snippets.

@nstarke
Last active December 20, 2024 19:56
Show Gist options
  • Save nstarke/baa031e0cab64a608c9bd77d73c50fc6 to your computer and use it in GitHub Desktop.
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!

@beardbyte
Copy link

Thanks for this. Exactly what I needed.

@matheusfillipe
Copy link

Any way to have fractional scaling?

@Spilios06
Copy link

Thanks, rly needed this cause i have a 4k monitor

@aybe
Copy link

aybe commented May 19, 2021

For Windows, VMARGS_WINDOWS=-Dsun.java2d.uiScale=2.

It'll look really big when you have 150% scaling enabled but it's better than being really small 😄 !

@milahu
Copy link

milahu commented Oct 3, 2021

@zer0divider
Copy link

awesome, just what I needed!

@hacefresko
Copy link

hacefresko commented Nov 30, 2021

I've been running ghidra on my macbook pro with Ubuntu for months and it was killing me. Thanks a lot!

@bog-dan-ro
Copy link

thanks

@skymage23
Copy link

Thanks, man. I needed this.

@Scarlett-stack
Copy link

awsome ,it worked wonders thankss!!

@nacnud-sco
Copy link

If we can do this with a config file parameter, it should be something the program can work out on the fly and just "fix". Anyway, great call. Works on W11. Thanks!!

@ariankordi
Copy link

All this does for me is just make the window 2x larger without making it any clearer - in fact, it's still scaling that 2x window. I have not found a single other person report this nor have I found a way to make GNOME not scale certain Xwayland windows, because I'm sure that Xwayland or GNOME is doing it.

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