IcedTea-Web icon indicating copy to clipboard operation
IcedTea-Web copied to clipboard

Running JNLP on HiDPI(4k) displays with scaling

Open al3xxx opened this issue 3 years ago • 6 comments

Hello,

I have a problem with IcedTea-web executing JNLP file from browser (namely Intel rmm3 remote console Jviewer) on HiDPI display in X11 - windows are too small and fonts are just unreadable.

It's possible to workaround with setting up environment variable GDK_SCALE=3 or GDK_DPI_SCALE=1.5 and that works just fine while executing /usr/bin/itweb-settings from command line.

I tried to create simple shell wrapper as /usr/bin/javaws

#!/bin/sh
export GDK_SCALE=3
/usr/share/icedtea-web/bin/javaws  $@

but that didn't work out. Quick search on the web says that I need to pass -Dsun.java2d.uiScale=3 argument to javaws but adding it to the command line inside the wrapper didn't work for running JNLP files from web page either.

Current workaround is to run browser with set GDK_SCALE=3, this way env variable is passed to IcedTea.

Is there any other way to make icedTea DPI aware/scale interface on HiDPI screens?

al3xxx avatar Nov 04 '21 16:11 al3xxx

You can try specifying DPI related VM arguments in your jnlp file.

janakmulani avatar Nov 06 '21 07:11 janakmulani

No, I can not. As I mentioned, it's piece of Intel hardware that contains JNLP file. And I have about 30 of such devices. Not to mention that dialogs of the IcedTea-Web itself are too small because it's not DPI aware.

al3xxx avatar Nov 06 '21 11:11 al3xxx

Is it possible for you to try running your Jnlp with OpenWebStart?

janakmulani avatar Nov 07 '21 17:11 janakmulani

For ITW, can you try specifying JVM DPI related arguments using itweb-settings.exe image

janakmulani avatar Nov 07 '21 17:11 janakmulani

image This didn't work out - plugin splash and warning dialogs still small

al3xxx avatar Nov 07 '21 18:11 al3xxx

@al3xxx,

use this parameter in windows registry:

javaws.exe -J-Dsun.java2d.uiScale=3

regards

patris70 avatar Nov 16 '21 12:11 patris70