Merge branch 'development' of https://github.com/aj-ptw/OpenBCI_GUI_v2.0 into development

Esse commit está contido em:
AJ Keller
2017-01-06 00:29:26 -05:00
+11
Ver Arquivo
@@ -399,6 +399,9 @@ void hubStart() {
if (isWindows()) {
println("OpenBCI_GUI: hubStart: OS Detected: Windows");
nodeHubby = launch(dataPath("Ganglion Hub.exe"));
} else if (isLinux()) {
println("OpenBCI_GUI: hubStart: OS Detected: Linux");
nodeHubby = launch(dataPath("Ganglion Hub"));
} else {
println("OpenBCI_GUI: hubStart: OS Detected: Mac");
nodeHubby = launch(dataPath("Ganglion Hub.app"));
@@ -421,6 +424,14 @@ boolean hubStop() {
}
}
/**
* @description Helper function to determine if the system is linux or not.
* @return {boolean} true if os is linux, false otherwise.
*/
private boolean isLinux() {
return System.getProperty("os.name").toLowerCase().indexOf("linux") > -1;
}
/**
* @description Helper function to determine if the system is windows or not.
* @return {boolean} true if os is windows, false otherwise.