Use Kotlin AppDirs (#1453)

This commit is contained in:
Mitchell Syer
2025-06-21 12:02:14 -04:00
committed by GitHub
parent bd7ea64b02
commit 1cdef5e0ee
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ package xyz.nulldev.ts.config
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import net.harawata.appdirs.AppDirsFactory
import ca.gosyer.appdirs.AppDirs
const val CONFIG_PREFIX = "suwayomi.tachidesk.config"
@@ -15,6 +15,6 @@ val ApplicationRootDir: String
get(): String {
return System.getProperty(
"$CONFIG_PREFIX.server.rootDir",
AppDirsFactory.getInstance().getUserDataDir("Tachidesk", null, null),
AppDirs { appName = "Tachidesk" }.getUserDataDir(),
)
}