Closed la1den closed 1 year ago
Seems the original issue does not update.. How about trying to use dialogs from lwjgl, just like we are doing for windows right now?
dependencies: https://github.com/sdercolin/vlabeler/blob/main/build.gradle.kts#L55-L63 usage: https://github.com/sdercolin/vlabeler/blob/main/src/jvmMain/kotlin/com/sdercolin/vlabeler/ui/dialog/FileDialog.kt#L86
I'm not very familiar with kotlin, I don't know if this is the right way to do it.
val lwjglVersion = "3.3.1"
listOf("lwjgl", "lwjgl-nfd").forEach { lwjglDep ->
implementation("org.lwjgl:$lwjglDep:$lwjglVersion")
if (System.getProperty("os.name").startsWith("win", ignoreCase = true)) {
listOf("natives-windows", "natives-windows-x86", "natives-windows-arm64").forEach { native ->
runtimeOnly("org.lwjgl:$lwjglDep:$lwjglVersion:$native")
}
}
else {
listOf("natives-linux", "natives-linux-arm32", "natives-linux-arm64").forEach { native ->
runtimeOnly("org.lwjgl:$lwjglDep:$lwjglVersion:$native")
}
}
Yes, that looks correct. I will look into it later. (not sure if it depends on certain OS/build of linux version..)
@la1den I think it's quite difficult to fix your issue, so I implemented a custom file dialog in this branch. Please have a try.
You can enable it in the preferences Misc
.
After it's tested I will merge this branch.
@sdercolin Wow, that's great! It can run perfectly.
Merged to dev
branch
Released
I downloaded the source code and then ran
./gradlew runDistributable
, and then the following problem occurred.I think my problem might be related to https://github.com/JetBrains/compose-multiplatform/issues/1279
freetype version:freetype2 2.13.1-1