Skip to content

Commit 13bab83

Browse files
committed
Update check for Windows 11 OS #1077
1 parent 9ef8bc9 commit 13bab83

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

OpenBCI_GUI/Extras.pde

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ private String getOperatingSystemVersion() {
7676
return System.getProperty("os.version");
7777
}
7878

79+
private String getOperatingSystemName() {
80+
return System.getProperty("os.name");
81+
}
82+
7983
private int[] fetchAndParseMacOsVersion() {
8084
if (!isMac()) {
8185
println("Oops! Please only call this method on MacOS");

OpenBCI_GUI/OpenBCI_GUI.pde

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,19 +399,20 @@ void setup() {
399399
StringBuilder osName = new StringBuilder("Operating System and Version: ");
400400
if (isLinux()) {
401401
osName.append("Linux");
402+
osName.append(" - ");
403+
osName.append(getOperatingSystemVersion());
402404
} else if (isWindows()) {
403-
osName.append("Windows");
405+
osName.append(getOperatingSystemName());
404406
//Throw a popup if we detect an incompatible version of Windows. Fixes #964. Found in Extras.pde.
405407
checkIsOldVersionOfWindowsOS();
406408
//This is an edge case when using 32-bit Processing Java on Windows. Throw a popup if detected.
407409
checkIs64BitJava();
408410
} else if (isMac()) {
409411
osName.append("Mac");
412+
osName.append(" - ");
413+
osName.append(getOperatingSystemVersion());
410414
}
411415

412-
osName.append(" - ");
413-
osName.append(getOperatingSystemVersion());
414-
415416
println("Console Log Started at Local Time: " + directoryManager.getFileNameDateTime());
416417
println(globalScreenResolution.toString());
417418
println(globalScreenDPI.toString());

0 commit comments

Comments
 (0)