JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.2k stars 1.17k forks source link

ImageComposeScene unnecessarily initializes JVM GUI Head #1397

Closed jimgoog closed 1 month ago

jimgoog commented 2 years ago

Probably ImageComposeScene shouldn't initialize the JVM GUI Head (eg Swing/AWT). You can reproduce on Mac OSX where running the code below will cause a JVM Application icon to appear in the dock and become focusable as a real application. This is especially frustrating when forking hundreds of processes to run unit tests in parallel in isolated JVMs.

fun main() {
    ImageComposeScene(50, 50) {}.close()
}
okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.