File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
7983private int [] fetchAndParseMacOsVersion () {
8084 if (! isMac()) {
8185 println (" Oops! Please only call this method on MacOS" );
Original file line number Diff line number Diff 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());
You can’t perform that action at this time.
0 commit comments