From 1a5ff39e1010416a53aea94a8558ee6b1bdafc53 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sun, 29 Dec 2024 23:06:41 +0100 Subject: [PATCH] osInfo() improved logofile detection --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 4 ++-- lib/osinfo.js | 11 ++++++++++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25620c2..4146cbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.23.24 | 2024-12-29 | `osInfo()` improved logofile detection | | 5.23.23 | 2024-12-25 | `bluetoothDevices()` added parsing vendor ID (macOS) | | 5.23.22 | 2024-12-25 | `osInfo()` fix manufacturer Apple Silicon (macOS) | | 5.23.21 | 2024-12-24 | `osInfo()` fix fqdn | diff --git a/docs/history.html b/docs/history.html index e6bad06..08408d0 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.23.24 + 2024-12-29 + osInfo() improved logo file detection + 5.23.23 2024-12-25 diff --git a/docs/index.html b/docs/index.html index 8e79478..841845b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.23.23
+
New Version: 5.23.24
@@ -204,7 +204,7 @@
-
17,135
+
18,271
Lines of code
diff --git a/lib/osinfo.js b/lib/osinfo.js index bac305c..3f016e7 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -76,12 +76,15 @@ function getLogoFile(distro) { if (_windows) { result = 'windows'; } - else if (distro.indexOf('mac os') !== -1) { + else if (distro.indexOf('mac os') !== -1 || distro.indexOf('macos') !== -1) { result = 'apple'; } else if (distro.indexOf('arch') !== -1) { result = 'arch'; } + else if (distro.indexOf('cachy') !== -1) { + result = 'cachy'; + } else if (distro.indexOf('centos') !== -1) { result = 'centos'; } @@ -97,6 +100,9 @@ function getLogoFile(distro) { else if (distro.indexOf('elementary') !== -1) { result = 'elementary'; } + else if (distro.indexOf('endeavour') !== -1) { + result = 'endeavour'; + } else if (distro.indexOf('fedora') !== -1) { result = 'fedora'; } @@ -133,6 +139,9 @@ function getLogoFile(distro) { else if (distro.indexOf('puppy') !== -1) { result = 'puppy'; } + else if (distro.indexOf('popos') !== -1) { + result = 'popos'; + } else if (distro.indexOf('raspbian') !== -1) { result = 'raspbian'; }