klyn.Application.properties
property
public static native readonly property properties as Map<String, String>
Description

System properties exposed by the runtime.

Known keys are:

  • klyn.home: resolved Klyn home directory.
  • klyn.version: runtime version.
  • klyn.launchDirectory: process launch directory.
  • os.name: normalized operating system name (Windows, Linux, MacOS, Android, FreeBSD or Unknown).
  • os.logicalProcessors: logical processor count when available.
  • os.tempfolder: temporary folder.
  • user.home: current user home directory when available.
  • screen.width: primary screen width on Windows when available.
  • screen.height: primary screen height on Windows when available.
  • screen.dpi: primary screen DPI on Windows when available.
Example
print(Application.properties["klyn.home"])
print(Application.properties["os.name"])
print(Application.properties["os.logicalProcessors"])