Kotlin and D-BUS (Linux)


Has anyone tried to connect to “dbus”?
Which library should I use?
Is any native library or do you I have to suck something with github java projects?


You must use Java library. Or go native and use C++ one.


I have’nt tried it myself but it seems relevant:


Thanks, for all answers.

Dbus lib from (https://dbus.freedesktop.org/doc/dbus-java/dbus-java/) is on old jvm.
I found ports on github on modern version JVM.
I’m looking native lib to kotlin.

The solution with C is very clever. Can you give me some link how to add plugins write in C/C++ to kotlin?

Big thanks, Guys


Kotlin native documentation home is here. Though, you should remember, that kotlin native is not the extension of Kotlin-JVM, it operates in completely different ecosystem (no interop with kotlin-jvm yet) and not released yet.

As for JVM, Kotlin is 100% interoperable with Java, so you can use Java libraries out of the box (with almost all Kotlin bonuses like null safety) or write your own thin wrapper on top of it.