macOS: fix -XstartOnFirstThread check

This commit is contained in:
Bixilon 2022-09-17 15:22:10 +02:00
parent 9f16b51414
commit 2a0165cba6
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -20,7 +20,6 @@ import de.bixilon.kutil.os.PlatformInfo
import de.bixilon.minosoft.config.StaticConfiguration
import de.bixilon.minosoft.data.registries.ResourceLocation
import java.io.File
import java.lang.management.ManagementFactory
object RunConfiguration {
@Deprecated("Use profile manager")
@ -60,8 +59,7 @@ object RunConfiguration {
val TEMPORARY_FOLDER = System.getProperty("java.io.tmpdir", "$HOME_DIRECTORY/tmp/") + "/minosoft/"
@Deprecated("Check is not working. ToDo")
val X_START_ON_FIRST_THREAD_SET = ManagementFactory.getRuntimeMXBean().inputArguments.contains("-XstartOnFirstThread")
val X_START_ON_FIRST_THREAD_SET = System.getenv("JAVA_STARTED_ON_FIRST_THREAD_${ProcessHandle.current().pid()}") == "1"
var VERSION_STRING = "Minosoft ${StaticConfiguration.VERSION}"