Skip to content

Commit

Permalink
properly create temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Bixilon committed Jan 22, 2024
1 parent b169d97 commit 4db3572
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ object RunConfiguration {

val TEMPORARY_FOLDER: Path = Path.of(System.getProperty("java.io.tmpdir") ?: "$HOME_DIRECTORY/tmp/", "/minosoft/")

init {
TEMPORARY_FOLDER.toFile().mkdirs() // bad, io on init
}

val X_START_ON_FIRST_THREAD_SET = System.getenv("JAVA_STARTED_ON_FIRST_THREAD_${ProcessHandle.current().pid()}") == "1"

var APPLICATION_NAME = "Minosoft"
Expand Down

0 comments on commit 4db3572

Please sign in to comment.