RFR: 8364687: Enable headless with -Dglass.platform=headless [v2]
Johan Vos
jvos at openjdk.org
Wed Aug 6 17:25:34 UTC 2025
On Tue, 5 Aug 2025 11:45:50 GMT, Clément de Tastes <duke at openjdk.org> wrote:
>> Basically allow -Dglass.platform=headless to enable headless, not only -Dglass.platform=Headless.
>> This makes it consistent with other options (macosx, windows, linux, gtk and ios) as well was less error-prone for enabling it.
>
> Clément de Tastes has updated the pull request incrementally with one additional commit since the last revision:
>
> remove additional space
I'll check later, but I want to raise this already:
there are 2 places (in 2 different modules) where the platform checks are done: com.sun.glass.ui.platform does one (discussed here), but there is also com.sun.javafx.PlatformUtil in the javafx.base method, which now has a method `isHeadless` which returns true on either "headless" or "Headless".
I do understand the differences between the Platform.java and the PlatformUtil.java checks, but there is some overlap that I'm not sure how to address.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1864#issuecomment-3160920806
More information about the openjfx-dev
mailing list