Author: echatellier Date: 2009-12-09 17:42:13 +0100 (Wed, 09 Dec 2009) New Revision: 2712 Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/SystemInfoFactory.java Log: Test os name in lower case. Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/SystemInfoFactory.java =================================================================== --- trunk/src/main/java/org/chorem/jtimer/ui/system/SystemInfoFactory.java 2009-12-09 16:39:20 UTC (rev 2711) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/SystemInfoFactory.java 2009-12-09 16:42:13 UTC (rev 2712) @@ -59,7 +59,7 @@ throws UnsupportedSystemInfoException { if (instance == null) { - String os = System.getProperty("os.name"); + String os = System.getProperty("os.name").toLowerCase(); // log it if (log.isInfoEnabled()) { @@ -67,9 +67,9 @@ } // try windows - if (os.contains("Windows")) { + if (os.contains("windows")) { instance = new Win32SystemInfo(); - } else if (os.contains("Linux") || os.contains("Mac OS")) { + } else if (os.contains("linux") || os.contains("mac os")) { instance = new UnixSystemInfo(); } else { // system unknown