Skip to content

Chore: Take the Java toolkit off the Linux native-image path - #184

Merged
b-re-w merged 4 commits into
developfrom
feat/awt-off-linux
Oct 4, 2026
Merged

b-re-w merged 4 commits into
developfrom
feat/awt-off-linux

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 4, 2026

Copy link
Copy Markdown
Member

Follows #173 (macOS). Part of #133.

  • build-native-linux.sh drops -H:Preserve=module=java.desktop, ImeReachabilityFeature, and the check for libawt, libawt_xawt, libawt_headless and libfontmanager; it now fails if a toolkit library is emitted.
  • libjawt.so is a stub (c/jawt_absent.c), so Skiko's load by path still works.
  • The notification press uses the X11 window; the unused toolkit raise function is gone.
  • scripts/tests/no-awt-on-linux-path.test.sh guards the build script, entry point and sources.
  • The Kotlin/Native Linux renderer has no toolkit and is unchanged.

Needs CI proof: a Linux native image without the toolkit has not been built before.

b-re-w added 4 commits October 5, 2026 07:05
Follows #173. The Linux build no longer preserves java.desktop, registers the input
method feature or expects libawt beside the image; libjawt.so is a stub. The notification
press raises the X11 window directly. no-awt-on-linux-path.test.sh fails if the toolkit
becomes reachable again.
…Linux image

Skiko's classes name java.desktop types, so Native Image emits libawt and its
siblings even though nothing loads them. The build lists them instead of failing.
…oaded at startup

The Linux image died in Toolkit.loadLibraries from the split pane cursor installed at
window start. The window maps this icon to its own resize shape, as macOS does.
…ux image

The coroutine main dispatcher still wakes the toolkit's event queue once the toolkit's module is no
longer preserved, and its library looks java.awt.GraphicsEnvironment up through JNI first.
@b-re-w
b-re-w merged commit 8554e21 into develop Oct 4, 2026
16 checks passed
@b-re-w
b-re-w deleted the feat/awt-off-linux branch October 4, 2026 23:22
b-re-w added a commit that referenced this pull request Oct 5, 2026
Feat: Take the Java toolkit off the Linux GraalVM image, and give macOS the same main dispatcher (follows #173, #184)
b-re-w added a commit that referenced this pull request Nov 7, 2026
…(FR-72)

WINDOW_REVISION moves to e3088cc, the merge of fork #183 (thisisthepy/compose-multiplatform-core-extended): FileDialogs in the common window module and MacosFileDialogs, NSOpenPanel and NSSavePanel as a sheet on the owning window. The only other change since 1b2884f is the fork's CI (#184).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant