Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use on HiDPI ? #84

Open
KaKi87 opened this issue Jun 13, 2024 · 2 comments
Open

How to use on HiDPI ? #84

KaKi87 opened this issue Jun 13, 2024 · 2 comments

Comments

@KaKi87
Copy link

KaKi87 commented Jun 13, 2024

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
Copy link

Rongronggg9 commented Sep 18, 2024

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

- 2x support?
https://github.com/bkerler/ghidra_installer/blob/master/install-ghidra.sh#L83-L88

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.

@nbenitez
Copy link

In my Java packaged apps I use this hack, you could consider it, or just wait for the next OpenJDK version which apparently will come with Wayland support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants