diff --git a/src/main/kotlin/org/bm00/DataAccessor/Application.kt b/src/main/kotlin/org/bm00/DataAccessor/Application.kt index a780eef..e432b2b 100644 --- a/src/main/kotlin/org/bm00/DataAccessor/Application.kt +++ b/src/main/kotlin/org/bm00/DataAccessor/Application.kt @@ -2,13 +2,14 @@ package org.bm00.DataAccessor import jexer.TApplication import org.bm00.DataAccessor.windows.WelcomeWindow +import java.util.* enum class OS { WINDOWS, LINUX, MAC, SOLARIS } fun getOS(): OS? { - val os = System.getProperty("os.name").toLowerCase() + val os = System.getProperty("os.name").lowercase(Locale.getDefault()) return when { os.contains("win") -> { OS.WINDOWS