MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / isLinux

Method isLinux

src/org/opensourcephysics/display/OSPRuntime.java:1102–1108  ·  view source on GitHub ↗

Determines if OS is Linux @return true if Linux

()

Source from the content-addressed store, hash-verified

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

Callers 7

runMethod · 0.95
getDefaultOSPCacheMethod · 0.95
findJREsMethod · 0.95
getUserHomeMethod · 0.95
getDownloadDirMethod · 0.95
getJavaFileMethod · 0.95
getDefaultSearchPathsMethod · 0.95

Calls 1

getPropertyMethod · 0.65

Tested by

no test coverage detected