Deciding which toolkit to use

Maxim Kartashev maxim.kartashev at jetbrains.com
Mon Sep 25 10:53:53 UTC 2023


I'd like to propose a topic for the upcoming Wakefield project meeting,
namely, how to best decide which toolkit to use at the start? The question
is relatively easily answered at the toolkit load time, but we must decide
much earlier because of the splash screen support. That thing starts
working when there's no Java yet, so the decision must be made then and not
change afterwards.
Options for the decision making include (but not limited to):
- look at $XDG_SESSION_TYPE,
- check $DISPLAY, then $WAYLAND_DISPLAY (or the other way around),
- try connecting to $DISPLAY, then $WAYLAND_DISPLAY.

There is also a question on how to pass this decision down to the toolkit
initialization time, which must choose the same and (preferably) regardless
of whether or not the splash screen was shown.
Options here include
- pass a command line option,
- implement the same logic in Java as in the early C startup code.

Opinions and suggestions are welcomed!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/wakefield-dev/attachments/20230925/05030bdc/attachment-0001.htm>


More information about the wakefield-dev mailing list