profile
viewpoint

Ask questionsGhidra does not render correctly with GDK_SCALE set (HiDPI display)

100% perfect workaround: https://github.com/NationalSecurityAgency/ghidra/issues/1#issuecomment-480923545


Describe the bug

On HiDPI displays on Linux, it is necessary to set GDK_SCALE= for a reasonable experience with OpenJDK apps, but setting this variable causes clipping of UI elements in every window.

To Reproduce

  • Acquire HiDPI machine
  • Set GDK_SCALE=2 or higher
  • Launch Ghidra

Expected behavior

Neatly scaled UI

screenshot from 2019-03-05 23-51-13

Environment (please complete the following information):

  • OS: Ubuntu 18.10
  • Version ghidra_9.0_PUBLIC_20190228.zip
  • Dell XPS 9550 (~285 dpi)
NationalSecurityAgency/ghidra

Answer questions ryanmkurtz

I updated launch.properties to indicate that sun.java2d.xrender set to true may address HiDPI monitor issues on Linux. We've had to set that property to false in the past to get Ghidra to render correctly in VM's so I wasn't comfortable with using true as a default just yet. We might change that in the future though.

useful!
source:https://uonfu.com/
answerer
Ryan Kurtz ryanmkurtz Charlottesville, VA geo2max.com Ghidra Developer, Strava Enthusiast
Github User Rank List