sqldeveloper on hidpi linux

2.3k Views Asked by At

I have sqldeveloper 18.2 installation on hidpi machine (xps 9370 with 4k display) and it's unusable due to scaling issues.

I have tried to launch it using different options:

  1. As is - interface icons and fonts too small
  2. As is increasing interface font - text overlapping makes it unusable
  3. Using gdk_scale with Java9
  4. Using -Dsun.java2d.uiScale=2 with Java8

It seems points 3 and 4 do scaling but with glitches making it unusable again.

Glitch example

I'd like to stick with 4k resolution as it really has difference vs fullhd

I will appreciate if you can direct me where to dig or resolve the issue at all

Thank you!

2

There are 2 best solutions below

1
On

I've found solution! Just set -Dsun.java2d.xrender=true and sqldeveloper launched with almost no glitches.

File: {install_dir}/sqldeveloper/bin/sqldeveloper.conf

There is some interesting point. "Show on startup" checkbox on welcome page is accessible while -Dsun.java2d.opengl is set to true. But this option leads to major ui drawing glitches

3
On

Append to /opt/oracle-sqldeveloper/sqldeveloper/bin/sqldeveloper.conf the following: AddVMOption -Dsun.java2d.uiScale=2 and it should work.