osInfo() improved logofile detection

This commit is contained in:
Sebastian Hildebrandt
2024-12-29 23:06:41 +01:00
parent d8a499ee34
commit 1a5ff39e10
4 changed files with 18 additions and 3 deletions
+10 -1
View File
@@ -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';
}