mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 03:15:35 -04:00
macOS: fix -XstartOnFirstThread check
This commit is contained in:
parent
9f16b51414
commit
2a0165cba6
@ -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}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user