[platform] pass low-level AWT properties to the updater process (IJPL-202816)

(makes the updater work on Wayland)

GitOrigin-RevId: 8f8664c4fec46842f59e893135f182a6d2cf325e
This commit is contained in:
Roman Shevchenko
2025-09-19 22:11:47 +00:00
committed by intellij-monorepo-bot
parent a722fc512c
commit 8e577154d3
@@ -160,6 +160,8 @@ internal object UpdateInstaller {
args += "-Djna.debug_load.jna=true"
args += "-Djava.io.tmpdir=${tempDir}"
args += "-Didea.updater.log=${PathManager.getLogDir()}"
System.getProperty("sun.java2d.metal")?.let { args += "-Dsun.java2d.metal=${it}" }
System.getProperty("awt.toolkit.name")?.let { args += "-Dawt.toolkit.name=${it}" }
args += "-Dswing.defaultlaf=${UIManager.getSystemLookAndFeelClassName()}"
args += "-Duser.language=${DynamicBundle.getLocale().language}"
args += "-Duser.country=${DynamicBundle.getLocale().country}"