Skip to content

Commit

Permalink
Fix config file being in the wrong location on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed May 20, 2023
1 parent a4edaca commit 9ee64c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import kotlin.io.path.*
data class Config(@EncodeDefault(EncodeDefault.Mode.NEVER) val sessionToken: String? = null)

fun getAppDataFolder(): Path {
val basePath = if (System.getProperty("os.name").startsWith("windows")) {
val basePath = if (System.getProperty("os.name").contains("windows", ignoreCase = true)) {
Path(System.getenv("APPDATA"))
} else {
Path(System.getProperty("user.home"))
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

allprojects {
group = "dev.schlaubi.tonbrett"
version = "1.2.2"
version = "1.2.3"

repositories {
mavenCentral()
Expand Down

0 comments on commit 9ee64c0

Please sign in to comment.