Determines if OS is Linux @return true if Linux
()
| 1100 | * @return true if Linux |
| 1101 | */ |
| 1102 | public static boolean isLinux() { |
| 1103 | try { // system properties may not be readable in some environments |
| 1104 | return (System.getProperty("os.name", "").toLowerCase().startsWith("linux")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| 1105 | } catch (SecurityException ex) { |
| 1106 | return false; |
| 1107 | } |
| 1108 | } |
| 1109 | |
| 1110 | /** |
| 1111 | * Determines if OS is Vista |
no test coverage detected