Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8248126

JavaFX ignores HiDPI scaling settings on some linux platforms

XMLWordPrintable

        ADDITIONAL SYSTEM INFORMATION :
        Dell XPS 13 with HiDPI (200 % scaling)
        Fedora 32 Workstation with Gnome
        OpenJFX 14.0.1

        A DESCRIPTION OF THE PROBLEM :
        On Fedora 32 Workstation (Gnome) the AppImage from Cryptomator (cryptomator.org) does not follow the system-wide scale settings from Gnome Settings.

        Default setting in Fedora:
        $ gsettings get org.gnome.desktop.interface scaling-factor
        uint32 0

        Please note the closed bug JDK-8137050 (https://bugs.openjdk.java.net/browse/JDK-8137050) which apparently did not fix the issue in Fedora Workstation 32 (Gnome).

        According to the developers from Cryptomator the bug occurs in OpenJFX 14.0.1 and 11.

        Related bug reports in Cryptomator for other distributions:
        https://github.com/cryptomator/cryptomator/issues/1223 (Ubuntu 20.04 LTS)
        https://github.com/cryptomator/cryptomator/issues/42 (Pop!OS)
        https://github.com/cryptomator/cryptomator/issues/1242 (Fedora 32 Workstation Gnome)

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Start AppImage from cryptomator.org

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        App window should scale according to system settings, in my case 200 %.
        ACTUAL -
        App window scales to 100 %.

        CUSTOMER SUBMITTED WORKAROUND :
        Workaround 1: $gsettings set org.gnome.desktop.interface scaling-factor 2
        Workaround 2: $GDK_SCALE=2 ./cryptomator-1.5.5-x86_64.AppImage

              pbansal Pankaj Bansal (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: