flathub / org.ghidra_sre.Ghidra

https://flathub.org/apps/details/org.ghidra_sre.Ghidra
7 stars 8 forks source link

How to use on HiDPI ? #84

Open KaKi87 opened 3 months ago

KaKi87 commented 3 months ago

Hi,

I tried adding the GDK_SCALE=2 environment variable using Flatseal and adding the -Dsun.java2d.uiScale=2.0 argument to the desktop file but neither worked.

Thanks

Rongronggg9 commented 2 weeks ago
sed -i 's/VMARGS_LINUX=-Dsun.java2d.uiScale=1/VMARGS_LINUX=-Dsun.java2d.uiScale=2/g' ~/.var/app/org.ghidra_sre.Ghidra/config/ghidra.properties

https://github.com/flathub/org.ghidra_sre.Ghidra/blob/68cab5162a19561da1a3376f92ecfebb33527182/TODO#L4-L5

This TODO entry referenced https://github.com/bkerler/ghidra_installer/blob/591bb130b03a6c5e267341e540fbe1f6160b0556/install-ghidra.sh#L87

See also #2

Alternatively, you may comment out the corresponding line in ghidra.properties so that JRE adheres to GDK_SCALE, which can be set via Flatseal.