properly create temp folder

This commit is contained in:
Moritz Zwerger 2024-01-22 02:32:52 +01:00
parent b169d97aa5
commit 4db357267e
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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"