Is there a reason why `LocalUriHandler` is not pre...
# compose-desktop
r
Is there a reason why
LocalUriHandler
is not present outside of a window? e.g. this will throw "CompositionLocal LocalUriHandler not present".
Copy code
private fun main() = application {
    LocalUriHandler.current.openUri("<https://google.com/>")
}
f
It's a compose specific construct, anything local like that is held in compose. Try using PlatformUriHandler for outside of compose
r
Right, my point is though that
application { }
is a compose context.
PlatformUriHandler
is internal too, so there's no way to access it!
a
You should file Compose bugs under the “Compose Multiplatform” project, not “Kotlin”. I reassigned your ticket.
👍 1
👍🏻 1
r
Ack my bad, thought I filed there