Is there a way to get what system we are on and it...
# multiplatform
x
Is there a way to get what system we are on and its version in `desktopMain`/`jvmMain`?
d
Any Java method to do so will suffice.
x
sorry, what do you mean?
Found these online
Copy code
System.getProperty("os.name");
System.getProperty("os.version");
but looks like some versions of windows don’t abide by these system properties
d
Kotlin doesn't have any special way. You just have to call Java APIs.
x
fair enough - i guess these will do for now