Merge branch 'development' of https://github.com/aj-ptw/OpenBCI_GUI_v2.0 into development
Esse commit está contido em:
@@ -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.
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário