Skip to content

Commit

Permalink
Fix home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Dec 17, 2023
1 parent fd997fb commit 58c1c15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import suwayomi.tachidesk.launcher.config.ServerConfig
import suwayomi.tachidesk.launcher.settings.LauncherPreference
import suwayomi.tachidesk.launcher.settings.LauncherSettings
import java.nio.file.Path
import java.nio.file.Paths
import kotlin.io.path.Path
import kotlin.io.path.absolutePathString
import kotlin.io.path.div
Expand Down Expand Up @@ -180,7 +181,7 @@ class LauncherViewModel {

companion object {
private val homeDir: Path by lazy {
Path(".") // Paths.get(this::class.java.protectionDomain.codeSource.location.toURI()).parent
Paths.get(this::class.java.protectionDomain.codeSource.location.toURI()).parent
}
private val tachideskServer by lazy {
homeDir / "bin" / "Tachidesk-Server.jar"
Expand Down

0 comments on commit 58c1c15

Please sign in to comment.