String osName = System.getProperty("os.name");
macOs = "Mac OS X".startsWith(osName);
linux = "Linux".startsWith(osName);
windows = "Windows".startsWith(osName);
String version = System.getProperty("os.version");
final String[] parts = version.split("\\.");
leopard = Integer.parseInt(parts[0]) >= 10 && Integer.parseInt(parts[1]) >= 5;
return macOs;