KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
426 stars 54 forks source link

Linux Build Not running #167

Open mathankumar-dotworld opened 3 months ago

mathankumar-dotworld commented 3 months ago

Problem when running in the linux platform

Task :composeApp:run [DefaultDispatcher-worker-1] INFO commons.Log - Initializing KCEF on /home/mathan/.local/share/TrueCast/ Could not load 'jcef' library Could not load 'cef' library JCEF(53:56:224): initialized stderr logger, severity=LOGSEVERITY_DEFAULT JCEF_I(53:56:225): CefApp: set state NEW

LaunchedEffect(Unit) {
            withContext(Dispatchers.IO) {
                KCEF.init(builder = {
                    Log.i("main", "Initializing KCEF on ${platform.directory}")
                    installDir(File(platform.directory + "kcef-bundle"))
                    progress {
                        onDownloading {
                            initialLaunchPreventScreen = false
                            downloading = String.format(Locale.ENGLISH, "%.2f", it)
                        }
                        onInitialized {
                            initialLaunchPreventScreen = false
                            initialized = true
                        }
                    }
                    release("jbr-release-17.0.10b1087.23")
                    settings {
                        cachePath = File(platform.directory + "cache").absolutePath
                    }
                }, onError = {
                    it?.printStackTrace()
                    initialLaunchPreventScreen = false
                    initialized = true
                }, onRestartRequired = {
                    restartRequired = true
                })
            }
        }
KevinnZou commented 3 months ago

@DatL4g Could you have a look at this issue?